-
Notifications
You must be signed in to change notification settings - Fork 930
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
$auth not defined in plugin & resetOnError option is ignored... #245
Comments
I'm hitting the same problem: my token to the server is expired, and so I want to logout and force getting a new token. Unfortunately |
See #134 for a workaround. |
Any fixes? |
I am also running into this issue. Any update? |
Move your plugs' declaration into
|
@themondays - Thank you. That does indeed work - missed this in the documentation. |
I think this can be closed as resolved @pi0 |
Should definitely be more clear in the documentation |
The problem with this method is that inject does not work inside a auth-plugin; so you'll need to include your plugin both places. |
@themondays Thanks! Been wasting a couple of hours on this one... :( |
How does this solve making |
For some reason you need to use |
Closing as stale for now. Please re-open a new issue if this is still present on nuxt-auth |
Version
v4.5.1
Reproduction link
http://prntscr.com/kxf2s5
Steps to reproduce
Follow the steps in the small detailed guide...
What is expected ?
What is actually happening?
Example failed request because bad token: http://prntscr.com/kxf48b
Result in the local storage: http://prntscr.com/kxf4i6
Additional comments?
nuxt.config.js:
Also, just as a side note, the login redirect is not working either... Login works tho.
The text was updated successfully, but these errors were encountered: