Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot refresh access token #4

Open
julianschmuckli opened this issue Apr 7, 2018 · 0 comments
Open

Cannot refresh access token #4

julianschmuckli opened this issue Apr 7, 2018 · 0 comments

Comments

@julianschmuckli
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant