You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
backend storage, Vercel also offers a managed KV storage that may be usable, but Firestore could also suffice. Whichever is easier.
So basically this means that on the server side we get a refresh token for the user on the first time on the server side, store the refresh token, then we just exchange a refresh token to an access token as necessary.
The problem
Current solution
./packages/website/src/utils/google-auth.ts
Possible solution
Implement "Authorization code flow" instead of the "Implicit code flow"
https://developers.google.com/identity/oauth2/web/guides/use-code-model
This requires additional things:
So basically this means that on the server side we get a refresh token for the user on the first time on the server side, store the refresh token, then we just exchange a refresh token to an access token as necessary.
@bbazsy fyi
The text was updated successfully, but these errors were encountered: