Skip to content
Discussion options

You must be logged in to vote

Found the solution by checking through the source code.

For anyone wanting to know how you need to set name in nuxt.config.js:

strategies: {
    laravelSanctum: {
        name: 'your-custom-name-here',
        provider: 'laravel/sanctum'
    }
}

Keep in mind, you'll need to update the provider name for things such as loginWith() and logout():

this.$auth.loginWith('your-custom-name-here', { data: this.loginForm });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by harrisonratcliffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant