Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Call method from vuex module in Vue 3 #666

@fabianlugones

Description

@fabianlugones

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions