K
Kinde8mo ago
Ash

Auth works in Development but not on Prod

hey there, I keep getting this error: Invalid callback URL The callback URL provided is invalid. You provided: https://www.chatswithpdf.com/api/auth/kinde_callback I don't have this issue in development Please note that I have provided my production urls in the application settings: Allowed callback URLs: http://localhost:3000/api/auth/kinde_callback https://www.chatswithpdf.com/api/auth/kinde_callback however I'm still not able to login on production I have deployed on vercel everything works in development.
No description
No description
No description
No description
9 Replies
Ash
AshOP8mo ago
No description
Oli - Kinde
Oli - Kinde8mo ago
Hey @Ash, Thanks for reaching out and sorry you are experiencing these issues. Are you able to double-check whether: 1. There are no trailing white spaces on the callback URLs 2. Your Client ID in your code is referencing the correct Kinde application Also what SDK are you using?
Ash
AshOP8mo ago
hey Oli thanks for replying, Yeah there are not white spaces "@kinde-oss/kinde-auth-nextjs": "^2.2.2", as for the client id, it works totally fine in development, do I need to make changes to the client id for prod?
Oli - Kinde
Oli - Kinde8mo ago
When you refer to development, are you referring to Vercel's development environment, or Kinde's development environment? Or Both?
Ash
AshOP8mo ago
by development, I mean my local environment, when I develop locally everything is set up, I can login, and sign up. but when I deploy on vercel, I get the above error
Oli - Kinde
Oli - Kinde8mo ago
Gotcha. I can see you are chatting away in https://discord.com/channels/1070212618549219328/1211998379303772201/1224249219020226661 I will need to get one of my NextJS Vercel expert colleagues to look into your issue tomorrow. Hopefully DuocNgo can solve your issue in the meantime. Let's continue the conversation in https://discord.com/channels/1070212618549219328/1211998379303772201/1224249219020226661
Ash
AshOP8mo ago
we couldn't solve the issue would appreciate if you let your NextJs vercel expert colleagues know tomorrow, thanks
Oli - Kinde
Oli - Kinde8mo ago
Hey @Ash, My NextJS expert teammate replied here: https://discord.com/channels/1070212618549219328/1211998379303772201/1224483825975955627 Let's continue the conversation in that thread
Ash
AshOP8mo ago
sure
Want results from more Discord servers?
Add your server