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 7676- Populate the .env file with the newly created code below:
7777
7878``` 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 = ' '
8280DATABASE_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'
8484GOOGLE_AUTH_CLIENT_ID = [google auth client id]
8585GOOGLE_AUTH_CLIENT_SECRET = [google auth client secret]
8686REDIS_URL = [redis url]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export const getGoogleAuthUrl = () => {
33
44 const options = {
55 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 ,
77 access_type : 'offline' ,
88 response_type : 'code' ,
99 prompt : 'consent' ,
You can’t perform that action at this time.
0 commit comments