Hey when i try to login via google on my next app. I get such error. The redirect link is an app hosted in vercel and has .vercel.app in its domain. How do i fix this issue?
TL;DR
To fix the "Error 400 Invalid `success` param: URL host must be one of: localhost, cloud.appwrite.io" issue when logging in via Google on a Next.js app hosted on Vercel with a .vercel.app domain:
1. Go to your console and navigate to "Settings -> Custom Domains".
2. Add your .vercel.app domain to the list of custom domains.
3. Save the changes.
The issue should be resolved after adding the custom domain.
Guille
8 Jan, 2024, 18:56
In your console you should go to Settings -> Custom Domains and add your .vercel.app domain
Drake
8 Jan, 2024, 19:47
would you please add a hostname that has an exact matching hostname (not wildcard)?