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