- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 172
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
The nuxt-auth@0.6.0-alpha.2 is not awaiting for the joinPathToApiURLWN on signinUrl of authjs (auth middleware / useAuth / signIn). #359
Comments
guesant
changed the title
The nuxt-auth@0.6.0-alpha.2 is not awaiting for the joinPathToApiURLWN on signinUrl of authjs (auth middleware).
The nuxt-auth@0.6.0-alpha.2 is not awaiting for the joinPathToApiURLWN on signinUrl of authjs (auth middleware / useAuth / signIn).
Apr 29, 2023
Ah, good catch? Want to open a PR? Otherwiese Ill do it (: |
Thanks! I'll do. |
Merged
4 tasks
PR: #360. |
Thanks! Tests are running now, will do a release shortly (: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Nuxi 3.4.2 17:46:15
17:46:15
RootDir: /mnt/tiedot/projetos/academic-tasks/academic-tasks-frontend 17:46:15
Nuxt project info: 17:46:15
Reproduction
https://stackblitz.com/edit/nuxt-starter-tkpaqv?file=pages/protected.vue
Describe the bug
The auth middleware tries to redirect to the login pages, but the user is sent to
/[object%20Promise]?callbackUrl=/protected
.I think the bug comes from here:
nuxt-auth/src/runtime/composables/authjs/useAuth.ts
Line 87 in 5cf5975
As long in the same file the
await
keyword is used for the same function:nuxt-auth/src/runtime/composables/authjs/useAuth.ts
Line 66 in 5cf5975
Additional context
I'm available to make an PR.
Logs
No response
The text was updated successfully, but these errors were encountered: