-
-
Notifications
You must be signed in to change notification settings - Fork 70
Google Login Error in Flutter mobile app #29
Comments
I am getting same problem. Anyone can share the flutter example, please. |
Hi @muhammadmateen027 @nomanmurtaza786
you can take a look at the code example here |
@muhammadmateen027 we release supabase_flutter to help with deeplink authentication on mobile. Give it a try and let me know if you are still facing problem with Google login https://pub.dev/packages/supabase_flutter |
@phamhieu I was trying to implement google authentication. As per the documentation, we require a google client id and a client secret. But after following those steps I am just getting a client id (no client secret, I have got a JSON file though but it too does not have anything sort of secrets). Seems like google client secrets have been deprecated for native applications. Can you suggest anything on how to proceed from here on now? |
@Sahil-kachhap It appears that you have selected Android application in your case, but at the moment, you need to create a OAuth 2.0 Client IDs for web application even for native apps using Flutter. Don't worry, you will be able to sign users in form your iOS and Android apps even if you create a web application OAuth 2.0 Client ID. If you choose web application, it will give you all the necessary information including client secret! |
Bug report
Google Login Error in Flutter mobile app
I have tried to log in using google
..signIn(provider: Provider.google)
, but it doesn't help at all. Webview pop-up doesn't appear even you can get the URL inprint()
method.To Reproduce
Steps to reproduce the behavior:
URL
fromResult
, it shows a URL like thishttps://[YOUR_APP_ID].supabase.co/auth/v1/authorize?provider=google
Expected behavior
The user should be able to view available google accounts and select.
Screenshots
No screenshot because nothing available on the page but I can share code snippets.
![image](https://user-images.githubusercontent.com/24449076/123509673-665b2b00-d6a9-11eb-94c8-f264b982a634.png)
System information
macOS, Android device. Android Simulator
supabase: ^0.0.1-dev.22
The text was updated successfully, but these errors were encountered: