Skip to content
Back

Invalid redirect url

  • 0
  • Web
Darkside
24 Apr, 2025, 02:54

I keep getting invalid redirect url in Nextjs when i try to use google or github authentication

TL;DR
Developers are receiving an 'invalid redirect url' error in Next.js when attempting to use Google or GitHub authentication. The issue may be due to the platform not matching the hostname of the app. Make sure to add a platform that matches the hostname of the app, such as hosting it on Vercel with the correct hostname configuration.
Steven
24 Apr, 2025, 02:57

Add a platform that matches the hostname of your app

Darkside
24 Apr, 2025, 02:59

Done that, i hosted it on vercel

Darkside
24 Apr, 2025, 03:00

added this to hostname *.vercel.app

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more