Back

OAuth 2 login issue

  • 1
  • Users
  • Accounts
  • Web
George
21 Oct, 2023, 19:24

While working on my local computer, the OAuth works perfectly. But when I deploy it to the live server. I get this error

Error 400 Invalid success param: URL host must be one of: localhost, cloud.appwrite.io, *.netlify.app Type general_argument_invalid

But in my localhost, it works perfectly

TL;DR
The user is experiencing an OAuth 2 login issue when deploying their project to a live server. They receive an error message stating "Invalid `success` param: URL host must be one of: localhost, cloud.appwrite.io, *.netlify.app". However, the OAuth login works fine on their localhost. The solution is to add a web platform that matches the domain exactly instead of using a wildcard one.
Drake
23 Oct, 2023, 01:49

You'll have to add a web platform that matches the domain exactly rather than a wildcard one

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