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

Refresh doesn't work #423

Open
delerino opened this issue Dec 21, 2022 · 1 comment
Open

Refresh doesn't work #423

delerino opened this issue Dec 21, 2022 · 1 comment
Assignees

Comments

@delerino
Copy link

delerino commented Dec 21, 2022

My OAuth service is never refreshing (even manually), and the service is never recognizing my token as 'expired' also.

I noticed that the service was trying to access the 'refreshUrl_' when that variable was never setted up (=null).

So, I solved setting the refreshUrl_ to same as tokenUrl (.setRefreshUrl()) and manually refreshing (service.refresh()) when my API returned unauthorized.

I hope it may helps someone.

@Mahesh-zeit
Copy link

if you can tell me how to do that with the code, thank you

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

3 participants