File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 76
76
- Populate the .env file with the newly created code below:
77
77
78
78
``` bash
79
- CLIENT_ID = [client id]
80
- CLIENT_SECRET = [client secret]
81
- GOOGLE_AUTH_CALLBACK = ' http://localhost:3000/api/oauth/google'
79
+ GOOGLE_AUTH_CALLBACK = ' '
82
80
DATABASE_URL = [mysql url for storing user data]
83
- SERVER_ENDPOINT = ' http://localhost:3000'
81
+ DEV_SERVER_ENDPOINT = ' http://localhost:3000'
82
+ DEV_CLIENT_ENDPOINT = ' http://localhost:8080'
83
+ GOOGLE_AUTH_CALLBACK = ' http://localhost:3000/api/oauth/google'
84
84
GOOGLE_AUTH_CLIENT_ID = [google auth client id]
85
85
GOOGLE_AUTH_CLIENT_SECRET = [google auth client secret]
86
86
REDIS_URL = [redis url]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export const getGoogleAuthUrl = () => {
3
3
4
4
const options = {
5
5
redirect_uri : 'http://localhost:3000/api/oauth/google' ,
6
- client_id : '971147535395-bd0vjrequipsrg5c74htoafjbmubgn3m.apps.googleusercontent.com' ,
6
+ client_id : process . env . GOOGLE_AUTH_CLIENT_ID as string ,
7
7
access_type : 'offline' ,
8
8
response_type : 'code' ,
9
9
prompt : 'consent' ,
You can’t perform that action at this time.
0 commit comments