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

API to retrieve a new access token if expired when doing the request #259

Open
alonwengierko opened this issue Feb 27, 2022 · 1 comment

Comments

@alonwengierko
Copy link

If API response status code is 401 (access token expired), it would be useful for the API to request a new access token based on the refresh_token, and run the request again with the new token.

@prschmid
Copy link
Owner

Great idea! Feel free to submit a pull request in which this is caught in BaseComponent and then automatically retried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants