Skip to content

Commit

Permalink
hotfix: google OAuth scope modified
Browse files Browse the repository at this point in the history
  • Loading branch information
moong23 committed Sep 17, 2024
1 parent 5ece5f1 commit 8ac88ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/constants/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export const PROD = process.env.NODE_ENV === 'production';

export const BASE_URL = PROD ? `${process.env.NEXT_PUBLIC_URL}` : 'https://localhost:3000';

export const GOOGLE_AUTH_API_URL = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}&response_type=code&redirect_uri=${BASE_URL}/${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}&scope=openid%20email%20profile%20https://www.googleapis.com/auth/gmail.modify&access_type=offline`;
export const GOOGLE_AUTH_API_URL = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}&response_type=code&redirect_uri=${BASE_URL}/${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}&scope=openid%20email%20profile%20https://www.googleapis.com/auth/gmail.modify%20https://www.googleapis.com/auth/gmail.readonly&access_type=offline`;

0 comments on commit 8ac88ae

Please sign in to comment.