Skip to content

refresh token #102

Answered by sergiodxa
massimopalmieri asked this question in Q&A
Dec 20, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In the verify callback you pass to the GoogleStrategy when you instantiate you receive an access token, then a refresh token, then extra params from Google and finally the user profile.

You can keep both the access token and refresh token and once you need to use the access token and it fails because it expired you can use the refresh token to get a new one and keep the new one.

Doing that it's outside the scope of the package, you need to do that in your loaders or actions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@massimopalmieri
Comment options

Answer selected by massimopalmieri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants