Replies: 4 comments 2 replies
-
See here, this can solve the error of authjs signin redirect failure in server form action.
Key Points: fucking authjs , get up and work , I spent 3 hours on this, |
Beta Was this translation helpful? Give feedback.
-
Any update on this ? This is either a documentation error or actual bug that need to fix. As |
Beta Was this translation helpful? Give feedback.
-
Any update on this issue? |
Beta Was this translation helpful? Give feedback.
-
Hi, this still doesn't work on the basic template using the nextauth cognito template getting "redirect_error" |
Beta Was this translation helpful? Give feedback.
-
Provider type
Cognito
Environment
Reproduction URL
https://github.com/zluo01/next-auth-cognito
Describe the issue
Login with cognito will get following error
error=redirect_mismatch
from the cognito url. Cognito page showsAn error was encountered with the requested page.
.Only change I have made is create
.env.local
and clean upauth.js
with one provider compare to the originalnext-auth-example
.Callback on cognito end is
http://localhost:3000/api/auth/callback/cognito
as suggested inhttps://authjs.dev/getting-started/authentication/oauth
.How to reproduce
Fill in the blank in
.env.local
then simply try to login with cognito.Expected behavior
Successfully authenticate with cognito like V4.
Beta Was this translation helpful? Give feedback.
All reactions