Hello,
I'm struggling to get next-auth to work properly on AWS Amplify. Error states the CLIENT_FETCH_ERROR however the log reports an invalid JSON response (first image).
Things I've tried:
- Ensured .env config is output in the next.config.js file
- Ensured .env is being set in the Build Settings
- NEXT_AUTH_URL is set and being pulled in the .env
- Tried setting NEXTAUTH_URL_INTERNAL
- Validated that the NEXT_AUTH_URL is set to the same as application host
- Non-secure API endpoints all return valid results
- Changing different NextJS and Next-Auth versions ( still trying different combinations )
Any other thoughts to get this to work?