Skip to content

Commit

Permalink
fix/ Auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2820 committed Aug 9, 2023
1 parent cf7e1e2 commit 633a584
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/router/auth/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ GoogleAuth.get(
return;
}

console.log(83);

ctx.cookies.set('access_token', accessToken, {
httpOnly: true,
secure: true,
// secure: true,
domain: DOMAIN,
});

ctx.cookies.set('refresh_token', refreshToken, {
httpOnly: true,
secure: true,
// secure: true,
domain: DOMAIN,
});
ctx.redirect(OAUTH_REDIRECT_URL);
Expand Down

0 comments on commit 633a584

Please sign in to comment.