Skip to content
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

Call method from vuex module in Vue 3 #666

Open
fabianlugones opened this issue Nov 9, 2021 · 1 comment
Open

Call method from vuex module in Vue 3 #666

fabianlugones opened this issue Nov 9, 2021 · 1 comment

Comments

@fabianlugones
Copy link

Hi. I love this package and I've work a lot with it :). Thanks for that !
Last week I've started working in a new Vue 3 project. This is the first time that I do Vue 3 and I have one problem:
I want to call the vue-auth's login method from a Vuex Module. I've read the vue-auth Upgrade section and the Vue 3 example code (in this example the Vuex store has no modules in it) and I couldn't find a way to do it.

I'm using Vuex 4 and vue-auth 4 with Vue 3.

I will paste code for a "Vue 2 way of solving this issue"

vue auth auth js at master · websanova vue auth

Thanks in advance!

@websanova
Copy link
Owner

@fabianlugones take a look here: #658

Someone was having similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants