How do I get Google refresh tokens using react

I can’t get the google refresh token when accessing the identities section of a user, after they’ve logged in. I retrieve an access token, but no refresh token. Here is my login.

 const handleLogin = () => {
        
        loginWithRedirect({
            access_type: 'offline', 
            connection_scope: 'https://www.googleapis.com/auth/calendar', 
            approval_prompt: 'force'
        }
        )
        
    }

Hi @9000jais

I believe you might be missing the offline access parameter from the webAuth.authorize function, as described in this Community post.

Alongside the above, you can find useful information on this following post as well, where multiple documentations have been shared on handling Refresh Tokens and obtaining them from Google.

Hope this helps!
Gerald

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.