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
oauth2RefreshTest.vue in the demo app is broken #747
Comments
Is it now recommended to use the Storage class to get and update the tokens for this page? Will updating the tokens via the Storage also update the tokens passed by Axios? |
After some exploring, it looks like the token and refreshToken methods have moved to the strategy object. I might have a PR soon. |
@JoaoPedroAS51 can you confirm my findings about moving of the token and refreshToken methods? |
Hi @kevintechie! Thank you for your report! :) Yes, now the token and refreshToken instances are initialized inside scheme (strategy). |
Fixed in latest commit 😊 |
Thanks, so much. Your commit looked exactly like the changes I made. Also, thanks for the quick response. |
quick comment here as i'm under a deadline to get something shipped. The v5 docs for Tokens need updated to account for the added |
Version
v4.9.1
Reproduction link
https://github.com/nuxt-community/auth-module/blob/dev/demo/pages/oauth2RefreshTest.vue#L119
Steps to reproduce
What is expected ?
I expect to access the page to test out oAuth2 token and refresh token functionality
What is actually happening?
I see error message. It appears that the this.$auth.token and refreshToken classes are undefined.
The text was updated successfully, but these errors were encountered: