Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generating New Access Token After Being Expired

See original GitHub issue

The authentication is working great for me in browser and on iOS, however after the access_token expires, I start getting invalid_token when making requests to Google’s API. Is there a way to refresh the access_token?

Looking at the source, it appears only signIn() and signOut are implemented. However looks like you’re calling await googleUser.reloadAuthResponse(); in signIn. Would exposing this as a method help generate a new access_token?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

scriptPilotcommented, Oct 25, 2019

Done - many thanks for your quick response 😃

scriptPilotcommented, Oct 24, 2019

Is there any planning to let the plugin manage the refresh in the background? It would be great to have a callback whenever there is a token update in order to save the updated token to the application store 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Refresh Token Expiration - Auth0
Enter Absolute Lifetime in seconds. The refresh token expires after the specified interval and can no longer be used to get a new...
Read more >
How to get the refresh token when existing token expires ...
Open the /OauthServer/Oauth. · Scroll down until you see the <clientRegistry/> matching the one you're using to request the token · Change the...
Read more >
Refresh Tokens - OAuth 2.0 Simplified
The presence of the refresh token means that the access token will expire and you'll be able to get a new one without...
Read more >
Getting access token with the refresh token after expiration(JWT)
A refresh token is generally a token that does not expire and can only be used to generate a new access token (which...
Read more >
Does the refresh token expires after 90 days irrespective of if it ...
When an access token expires, a refresh token is used to get a new access token and it also returns a new refresh...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found