Skip to content

Commit

Permalink
Merge pull request #48 from ganada-labs/#46/adapt-rtr-to-refresh-toke…
Browse files Browse the repository at this point in the history
…n-auth

update/ google oauth now set refresh token too
  • Loading branch information
dev2820 authored Aug 9, 2023
2 parents 3ecdd9d + 179ad54 commit cf7e1e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/router/auth/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ GoogleAuth.get(

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

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

0 comments on commit cf7e1e2

Please sign in to comment.