Skip to content

Commit

Permalink
libs(migration): Adapt authGoogle.ts with artic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzuan authored Nov 5, 2024
1 parent ea4e418 commit 84590f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/authGoogle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ const google = new GoogleInstance(
`${baseURL}/v2/auth/google/callback`
);

const authUrl = async (state: string, codeVerifier: string) =>
await google.createAuthorizationURL(state, codeVerifier, {
scopes: ["profile", "email"],
});
const authUrl = (state: string, codeVerifier: string) =>
google.createAuthorizationURL(state, codeVerifier, ["profile", "email"]);

const getTokens = async (code: string, codeVerifier: string) =>
google.validateAuthorizationCode(code, codeVerifier);
Expand Down

0 comments on commit 84590f1

Please sign in to comment.