Denoder / nuxt-module-alternatives

Alternative modules to use while waiting for Nuxt 3 Compatibility
MIT License
144 stars 14 forks source link

`loginWith()` does not redirect #86

Closed steklopod closed 1 year ago

steklopod commented 2 years ago

setup

nuxt.config was taken from Nuxt 2 working project and does not have auth.redirect section (because of default values expected):

Снимок экрана 2022-10-08 в 19 35 09

problem

Cookies were set, but redirect was not triggered.

this.$auth.loginWith('local', { body: this.userPrincipal })
Снимок экрана 2022-10-08 в 19 25 04 Снимок экрана 2022-10-08 в 19 26 44
steklopod commented 1 year ago

The problem is actual

await useAuth().loginWith('local', { body: userPrincipal })

this is not redirecting

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

steklopod commented 1 year ago

Here is a reproduction link: https://stackblitz.com/edit/nuxt-starter-ykgz8i?file=pages%2Flogin%2Findex.vue,nuxt.config.ts,package.json

Just press login button