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

Change the way that sdk refreshes access token #4

Open
samfcmc opened this issue Jan 8, 2014 · 0 comments
Open

Change the way that sdk refreshes access token #4

samfcmc opened this issue Jan 8, 2014 · 0 comments
Assignees

Comments

@samfcmc
Copy link

samfcmc commented Jan 8, 2014

How it's done now:

  • Try to make a request to a private endpoint
  • If it fails:
    • Refresh the token
    • Recall that endpoint
      This approach make 3 http requests

How to do this the right way

  • Check the access token validity (before any request)
  • If it's expired
    • Refresh the access token
  • Call the private endpoint
@ghost ghost assigned samfcmc Jan 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant