Kamis, 28 September 2023
FAQ - Frequently asked questions
Q |
: |
I'm getting an error that `router` is not found? |
A |
: |
This is a particular issue of using `vue-resource` that requires `Vue.router` to be set before the plugin is initialized. |
Q |
: |
I've logged in successfully but it's not working after |
A |
: |
Likely related to token issues with a valid token not being sent back. First steps are to fully verify that the token is indeed being sent back. |
Q |
: |
Why is the token not being set? |
A |
: |
By default the plugin will look for a token in `Authorization` header. This is controlled by one of the [auth](https://github.com/websanova/vue-auth/tree/master/drivers/auth) drivers. These are simple drivers that simple set and get a token. It's best to start debugging here if there are issues with tokens. |