sdk-oauth
sdk-oauth copied to clipboard
Cannot refresh access token
Hello,
I have currently some problems with the OAuth button in the settings. I get an access token from Google, but not a refresh token to get a new access token. To get that refresh token I have to pass another parameter to the authorization URL according to this StackOverflow post.
Here is my OAuth button for now:
<Oauth
settingsKey="oauth"
title="Google Login"
label="Google"
status="Login"
authorizeUrl="https://accounts.google.com/o/oauth2/v2/auth"
clientId="xxxxxxx"
clientSecret="xxxxxxxx"
scope="https://www.googleapis.com/auth/drive.readonly"
onReturn={async (data) => {
props.settingsStorage.setItem('oauth_code', data.code);
}}
/>
Is there a workaround or something in development to adding additionally parameters to the authorization process?
Thank you in advance.