-
-
Notifications
You must be signed in to change notification settings - Fork 378
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
Vue-Auth and Pinia #690
Comments
I haven't used pinia yet, as long as you can import the library though, it should work I think? Do you have some examples of anything you tried? |
After authorization, there is a request to update the user's data. But I get an authorization error because the request does not contain a token. The pinia repository is also empty, as is localstorage. The token received from the api is not saved anywhere main.ts
plugins/auth.js
http/index.js
views\auth\Login.vue
stores/user.stores.js
|
Please tell me, is it worth waiting for a demo project with pinia? |
It's just a store, it shouldn't really have anything to do with vue-auth library. Are you having issues importing the Should be able to setup a basic example with some console calls. |
There are no problems with using use Auth(). After the login() method, the token is not stored in the storage.
|
Hmm, so does the login call return a token? |
Yea, so you're not using the correct |
Thank you for advice. |
Do I need additional settings to use this plugin with pinia storage? I tried to figure it out myself, but unfortunately I couldn't get this plugin to work with pinia.
The text was updated successfully, but these errors were encountered: