Replies: 3 comments
-
https://stackoverflow.com/questions/72023479/next-auth-only-valid-absolute-urls-can-be-requested |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any luck on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
A little late I've been trying to solve the problem for a couple of hours. I think that cognito fail with http://localhost so I decided to use My .env COGNITO_CLIENT_ID=""
COGNITO_CLIENT_SECRET=""
COGNITO_ISSUER="https://cognito-idp.{zone}.amazonaws.com/{pool_id}"
NEXTAUTH_URL="https://{ngrok_url}"
NEXTAUTH_SECRET="my_secret" Cognito callback url https://{ngrok_url}/api/auth/callback/cognito Ngrok command on port .\ngrok.exe http 3000 That's it 👍🏼 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question 💬
I have the following setup:
http://localhost:3000
code
grant value upon re-directing to the URLFollowed the steps in this tutorial to setup AuthN using
next-auth
packageChanged the Callback URL based in the Cognito client to based on doc here:
Following error is thrown when trying to run the code:
End URL when the error is thrown:
Full trace:
What am I configuring wrong here? Any help is much appreciated.
How to reproduce ☕️
.env.local
file to the root of the project.env.local
filenpm run dev
http://localhost:3000
and clickLogin
, should redirect to show a page as belowContributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions