Dear lovely people,
My app is working in local environment but when moved to production I've experienced issues with the login.
I have added a custom domain: aa.zerotoadshero.com
I decided to create new Client ID key for production and since then I am getting Error 400: redirect_uri_mismatch
I have replaced the new Client ID key in the environment variables in Vercel.
I have also added Authorised JavaScript origins https://aa.zerotoadshero.com/
And Authorised redirect URIs https://aa.zerotoadshero.com/api/auth/callback/google
NEXTAUTH_URL is set to https://aa.zerotoadshero.com
Here's the debug endpoint:
{"nextauth_url":"https://aa.zerotoadshero.com","node_env":"production","vercel_url":"aa-chatbot-b0eglgw1s-kirilmkostov-gmailcoms-projects.vercel.app","vercel_env":"production","callback_url":"https://aa.zerotoadshero.com/api/auth/callback/google"}I am getting Error 400: redirect_uri_mismatch, I should be able to log in
It's probably something little that I am not seeing and I hope that a pair of fresh eyes will help me solve this issue.
Any more information please let me know.