Back

[Solved] - Facing error with OAuth Google Login

  • 0
  • Accounts
  • Web
Shantanu Tripathi
30 Aug, 2023, 08:46

Error 400 Invalid success: URL host must be one of: localhost, appwrite.tripathig.in, authapp.tripathig.in

the success url is whitelisted still I am getting this error.

I am using appwrite cloud with custom domain

TL;DR
User is facing an error with OAuth Google Login. The solution is to add both success and failure URLs or only the provider URL. The error is caused by an invalid success URL host. User is using Appwrite cloud with a custom domain.
joeyouss
30 Aug, 2023, 08:50

Did you add that hostname as a web platform in your project?

Shantanu Tripathi
30 Aug, 2023, 08:54

How do I add that ?

joeyouss
30 Aug, 2023, 08:56

so you go to -> add platform -> choose your platform, it will ask the hostname

Shantanu Tripathi
30 Aug, 2023, 08:57

yes its added

Shantanu Tripathi
30 Aug, 2023, 09:00
joeyouss
30 Aug, 2023, 09:07

tripathig or tripathing?

Shantanu Tripathi
30 Aug, 2023, 09:11

tripathig

Shantanu Tripathi
30 Aug, 2023, 09:35

I have also tried with wildcard *.tripathig.in

Shantanu Tripathi
30 Aug, 2023, 09:35

its not working

safwan
30 Aug, 2023, 12:49

Can you try using the protocol like https://authapp.tripathig.in in the success URL for OAauth?

Shantanu Tripathi
30 Aug, 2023, 14:13

The is resolved.

Shantanu Tripathi
30 Aug, 2023, 14:14

Solution : add both success and failure url or don't add any just the provider. It work's now

Shantanu Tripathi
30 Aug, 2023, 14:14

Thankyou @joeyouss , @safwan

Shantanu Tripathi
30 Aug, 2023, 14:15

Resolved - Facing error with OAuth Google Login

Shantanu Tripathi
30 Aug, 2023, 14:17

[Solved] - Facing error with OAuth Google Login

joeyouss
30 Aug, 2023, 15:02

shoot, I thought you added them both when you sent ss 😅

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