I got 405 when signin/up.
I am using NextJS and passwordless login. (Phone)
I have
pages/api/auth/[[...path]].tsx
and it's content is same as doc.
This is my appInfo
export const appInfo = {
appName: NAME,
apiDomain: DOMAIN,
websiteDomain: DOMAIN,
apiBasePath: "/api/auth",
websiteBasePath: "/auth"
}
I can see UI in
<DOMAIN>/auth
, but when I provide phone number and click continue, I got this.
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (refresh, line 0) <DOMAIN>/api/auth/session/refresh
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (refresh, line 0)
<DOMAIN>/api/auth/session/refresh
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (refresh, line 0)
<DOMAIN>/api/auth/session/refresh
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (code, line 0)
<DOMAIN>/api/auth/signinup/code