-
Notifications
You must be signed in to change notification settings - Fork 67
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
Regarding sign-in page.. #21
Comments
same issue i also facing |
configure your middleware as per documentation export const { auth, handlers } = NextAuth({ |
Btw i have issue why result gives redirecturl only it should be a object upon console log output of result is not expected and that might be also your issue @AbhinavSharma486 @Prathamesh557 cause result object has no url so |
did this issue got solved ?? i am facing the same problem, can anyone help? |
I have created a pull request for it. So the problem is that the token is NULL in middleware.ts (You can check by console.log(token)) due to which we are redirecting to sig-in route even when the user is logged in. To resolve this issue you have to provide NEXT_AUTH_TOKEN to your getToken() method. |
🙏🙏👍
…On Thu, 19 Sep 2024 at 4:42 PM, Kunal Nasa ***@***.***> wrote:
did this issue got solved ?? i am facing the same problem, can anyone help?
I have created a pull request for it. So the problem is that the token is
NULL in middleware.ts (You can check by console.log(token)) due to which we
are redirecting to sig-in route even when the user is logged in. To resolve
this issue you have to provide NEXT_AUTH_TOKEN to your getToken() method.
const token = await getToken({ req: request, secret:
process.env.NEXT_AUTH_SECRET });
This will resolve this issue
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7ENXX2LXVUQ2R6GAUIP5CLZXKWTDAVCNFSM6AAAAABLOLCTV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRQGY4TMMJWGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
When we enter details on sign-in page , and hit submit , it is not redirecting to dashboard..
I request genuinely Hitesh Sir to please upload the repo of fully working project as this is having alot of issues..
The text was updated successfully, but these errors were encountered: