Replies: 1 comment
-
There's an open pull request summarising the issue here: More discussions here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks! I am currently using next-auth@5.0.0-beta.19 on next 14.1.3 and am having an issue with the auth callback action no longer working after deploying my site on a basePath (All was working fine without a base path and I have added the basePath property to my config). I am wondering if anyone has experienced similar or has any tips for things I could try; as I've followed the documentation as far as I could but it doesn't seem to be recognising the callback action now?
Current walkthrough of the issue:
community/api/auth
[auth][error] UnknownAction: Cannot parse action at /api/auth/callback/azureb2c.
The application seems to not be handling this correctly but I'm unsure where the real issue lies; as the redirect uri provided in my b2c application is correct 'http://localhost:3000/community/api/auth/callback/azureb2c' (includes the basepath), but the error I am seeing seems to suggest it's receiving and trying to invoke an action at /api/auth/callback/azureb2c which does not contain the subpath but is 'internally' correct for the application.
I have some middleware where I have console logged the incoming request and the result is as follows:
returns:
Project setup:
My auth api is setup at the following directory
app/api/auth/[...nextauth]
Both my NextJS config and NextAuth config have both had the relevant basePath properties added like so:
next.config.mjs
src/auth/auth.ts
I would really appreciate any help if there is something I'm missing or could try; else I will raise an issue for this.
Thanks :)
Jez
Beta Was this translation helpful? Give feedback.
All reactions