Automatically refresh the "token" if it expires, because some Oauth providers has a short token TTL.
Once https://github.com/nuxt-community/auth-module/pull/145 has been accepted, I will propose a PR to auto refresh the "token" if it has been expired.
@pi0 @breakingrobot where place it? Maybe lib/core/auth.js?
mounted () {
// handle token expiration
if (this.strategy.options.auto_refresh_token === true) {
this.watchTokenExpiration()
}
}
@robsontenorio Really looking forward to this. Any idea when you'll have time for the PR?
Just waiting another PR be merged.
Done! PR sent.
@robsontenorio any progress on the issue? I am trying to solve the same problem.
It seem was not well received. Just waiting a response.
Any news on this?
There was some tries in the past, but mantainers does not reviewed it. The code base from PRs is deprecated now.
What is the current approach of most people to solve this? I also need this functionality.
we're using this workaround for now. https://github.com/nuxt-community/auth-module/pull/208#issuecomment-408293603.
would like to know if this project is moving forward anymore? there is some pull requests merged but for some reason there's no releases since a while.
Any update on this this issue ?
Any news?
Nothing?
Any update for the refresh token support?
Anything?
Hey there! We are working on refresh support! For now you can use the new branch (feat/refresh)
Docs and more details can be found at #361
Hey there! We are working on refresh support! For now you can use the new branch (feat/refresh)
Docs and more details can be found at #361
Is this functionality available in the master branch?
No, sorry, this is only available in the auth-next branch. If you need this feature, you should upgrade. See the status page for more details. Closing this issue since it's available now :)
Most helpful comment
Any news?