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

Update Request Object with New Access Token #73

Open
shawns582 opened this issue Aug 31, 2016 · 0 comments
Open

Update Request Object with New Access Token #73

shawns582 opened this issue Aug 31, 2016 · 0 comments

Comments

@shawns582
Copy link

I am having a problem updating my Oauth.io request object with a new access token. I am able to successfully get a new access token using my refresh token from spotify/youtube but my new token expires when the original token was supposed to expire. Below is the flow I am experiencing:

  • User logs in and an access token and refresh token are received by my app in the callback
  • Refresh token is sent to my server to be stored
  • Use the refresh token server-side to obtain a new access token every x minutes (currently using 10min)
  • Send the new access token to the client side
  • Update the access_token field in the oauth.io request object
  • conduct new api requests

The new access tokens will work all the way up until the time the original token expired. Not sure why this is happening. Is there something else I need to do to update the request object? Thanks a ton for any help you can offer. This is the last thing before I work to release my app!

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