Back

Google Auth Access blocked: authorization error

  • 0
  • Flutter
  • Accounts
Shivansh
2 May, 2023, 10:40

I'm trying to add google auth to my flutter app but I'm facing this error and I'm not able to find the solution anywhere

I don't think there is any problem with the code since it is redirecting to this page but maybe with Google Console

TL;DR
Solution: The user is trying to add Google Auth to their Flutter app but is facing an authorization error. One solution is to edit the hosts file in the emulator by following a stackoverflow answer. Another solution is to create a host for their IP and add it to the Google OAuth consent screen. Moving the app to an online server with a domain or using Cloudflare tunnel are other complex options. The user suspects there may be an issue with Google Console.
Binyamin
2 May, 2023, 12:51

Google requiring you o provide a top private domain when using OAuth.

The best solution in your case would be to create some host for your IP Then add it to your Google OAuth consent screen.

And using mobile phone can make it a bit tricky if you're using you local environment. There are few solution but each is more complex the the previous one.

From what I can see your best option would be:

  1. Move it to some online server with Domain.
  2. Use Cloudflare tunnel for free and point an outside real domain to your local instance of Appwrite
Binyamin
2 May, 2023, 13:04

P.s. You can use this answer https://stackoverflow.com/questions/41139087/i-cant-edit-android-emulators-host-file#answer-41144234 to edit the hosts file in your emulator.

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