DEV Community

Discussion on: How to setup Google OAuth2 login with Express

Collapse
 
chris_spencer_7da8f5bdddb profile image
Chris Spencer

This was really helpful. My one issue is that the token only returns an access_token, not a refresh_token, and the user must login again every fifteen minutes or so. I have used access_type: 'offline' for generating oauth2Client.AuthUrl. Any tips for getting the refresh_token?