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]