Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Cannot refresh access token #4

@julianschmuckli

Description

@julianschmuckli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions