-
Notifications
You must be signed in to change notification settings - Fork 9
Open
@sambeaCA
Description
Plugin version
0.8.3
Payload version
3.54.0
Auth.js version
5.0.0-beta.29
Describe the bug
I am implementing multiple NextAuth collections (one for customers and one for admins), each configured with its own basePath (e.g. /api/auth/customers
and /api/auth/admin)
. However, the default NextAuth base path (/api/auth) is still being called instead of the custom paths, which prevents the separate auth routes from working as expected.
GET /api/auth/providers 400 in 3631ms
Root auth route - URL: http://localhost:3000/api/auth/error
Routing to admins handler (referer indicator)
[auth][error] UnknownAction: Cannot parse action at /api/auth/error. Read more at https://errors.authjs.dev#unknownaction
To Reproduce
Go to Admins/login and click Google sign in button