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
{{ message }}
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.
Hey @adamsh25 !
Any chance you might have a logs on your hand? Also, if you say that redirection does not work - do you get some Internal Error? Does not not function at all? Do you get stuck on API route?
I did replicate the behaviour, tested on Cognito and latest Next-auth. It indeed does not redirect properly.
From what I was able to gather around Github, it seems like cookies/headers are not passed properly through Cloudfront, I tried out tweaking Origin Request and Cache policies, but no luck. I wasn't able to find what headers/cookies are used/necessary, it will probably require digging into source code of the next-auth.
Use case:
I used the repo below and added next-auth using Cognito provider:
https://github.com/plevavas/monorepo
https://next-auth.js.org/getting-started/example
https://next-auth.js.org/providers/cognito
The redirection to Cognito login does work locally when debugging in vs code
Issue:
The redirection to Cognito login does NOT work when deployed with tosladg/[email protected]
The text was updated successfully, but these errors were encountered: