Skip to content
Back

Oauth2-Error 400Invalid `success` param: URL host must be one of: localhost, appwrite.io, *.appwrit

  • 0
  • Web
  • Cloud
cryptobitez
6 Jun, 2025, 14:58

My code:

TypeScript
  await new Account(client).createOAuth2Session(OAuthProvider.Google, 'https://www.mydomain.online/home', 'https://www.mydomain.online');

I have added the domain on the appwrite console (appwrite-->console-->add domain--> add 'www.mydomain.online'). The domain is on IONOS. Appwrite wants me to add to my DNS some new NS values. This doesn't work on ionos. Ionos asks for a subdomain and 'points to' value when i try to add a new DNS record. How to solve this?

TL;DR
Error message indicates invalid `success` param URL. User tried to add a domain to Appwrite console for OAuth2 but faces DNS configuration issues on IONOS. To solve, create a subdomain in IONOS DNS settings pointing to the desired host, then try adding the domain to Appwrite again.
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