I use the OAuth2 JavaScript library to request an access token from users. I want to save the token in the database on the server.
In order to be able to access user data after the expiration date, I also need to save the update token. I know how to do this when using the Google OAuth2 server library (specify access_type = offline), but I need to be able to do this with the client Javascript library, and it does not work.
source share