Skip to content

Commit

Permalink
feat: ⚡ update env
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Jun 14, 2024
1 parent 15a17ec commit b9beaa8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion apps/be/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ AUTH_PASSWORDLESS_EXPIRES_IN=15m
AUTH_PASSWORDLESS_SECRET='supersecretkeyyoushouldnotcommittogithub_pwless'

AUTH_CONFIRM_EMAIL_TOKEN_EXPIRES_IN=15m
AUTH_CONFIRM_EMAIL_SECRET='supersecretkeyyoushouldnotcommittogithub_confirmEmail'
AUTH_CONFIRM_EMAIL_SECRET='supersecretkeyyoushouldnotcommittogithub_confirmEmail'

AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
8 changes: 7 additions & 1 deletion apps/fe/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
NEXT_PUBLIC_API_URL=http://localhost:8000/api
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL=http://localhost:3000

AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=

AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
8 changes: 4 additions & 4 deletions apps/fe/src/libs/next-auth/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import axios from '../axios';
export const authOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET,
clientId: process.env.AUTH_GOOGLE_ID,
clientSecret: process.env.AUTH_GOOGLE_SECRET,
}),
GithubProvider({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
clientId: process.env.AUTH_GITHUB_ID,
clientSecret: process.env.AUTH_GITHUB_SECRET,
}),
CredentialsProvider({
credentials: {
Expand Down

0 comments on commit b9beaa8

Please sign in to comment.