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

Can't get access token #25

Open
chriszhang08 opened this issue May 28, 2024 · 3 comments
Open

Can't get access token #25

chriszhang08 opened this issue May 28, 2024 · 3 comments

Comments

@chriszhang08
Copy link

Has anyone gotten an error where they were unable to use the refresh token to retrieve a new access token? I'm getting this error

Error: Couldn't get access token: {
"error": "unauthorized_client",
"error_description": "Unauthorized"
}
even though I got the refresh token as instructed in the environment setup.

@timfee
Copy link
Owner

timfee commented May 28, 2024

Invalid client usually means that the client ID and client secret don't match, or there is a typo in one of them.

When you retrieve the refresh token, could you try putting the access token that comes along with it into the tokeinfo endpoint and making sure the values for client ID there match the ones you've configured with: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=

It might be worth dumping out the request to make sure there isn't a mistake in that (e.g. too short a content-length header or similar).

@IndySof
Copy link

IndySof commented Nov 6, 2024

Hello, I feel like if nobody use the app, the token will expired anyway, can you confirm this ?

@trillium
Copy link
Collaborator

trillium commented Nov 6, 2024

No, you can set up the token so it doesn't expire

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

4 participants