You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I understood, signIn function with no parameters, should redirect to signIn page. If the signIn page is customized in auth.ts, signIn function should redirect to new one but it doesn't, yet it redirects to '/api/auth/signin' page.
If you refresh the wrongly redirected one, you get the correct URL but needs a refresh.
Also, redirected page has the content of correct one.
So, just the URL is wrong. Page is correct.
You can use https://custompageissue.vercel.app to check
Configure custom signIn page.
Call signIn function with no parameter from anywhere in your page.
It will be redirected to /api/auth/signin page instead of customized one.
Expected behavior
After configuring custom signIn page and calling signIn function, it should redirect to the one in customized signIn (e.g. /login) instead of /api/auth/signin
The text was updated successfully, but these errors were encountered:
iltan987
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Feb 16, 2025
Environment
Reproduction URL
https://github.com/iltan987/custom_page_issue
Describe the issue
As I understood, signIn function with no parameters, should redirect to signIn page. If the signIn page is customized in auth.ts, signIn function should redirect to new one but it doesn't, yet it redirects to '/api/auth/signin' page.
If you refresh the wrongly redirected one, you get the correct URL but needs a refresh.
Also, redirected page has the content of correct one.
So, just the URL is wrong. Page is correct.
You can use https://custompageissue.vercel.app to check
src/auth.ts:
src/app/middleware.ts:
src/app/api/auth/[...nextauth]/route.ts:
src/app/login/page.tsx
How to reproduce
Configure custom signIn page.
Call signIn function with no parameter from anywhere in your page.
It will be redirected to /api/auth/signin page instead of customized one.
Expected behavior
After configuring custom signIn page and calling signIn function, it should redirect to the one in customized signIn (e.g. /login) instead of /api/auth/signin
The text was updated successfully, but these errors were encountered: