simple_auth
simple_auth copied to clipboard
Can't understand how to auth and redirect to my app after logging in google
my code:
SimpleAuthFlutter.init(context);
final simpleAuth.GoogleApi googleApi = new simpleAuth.GoogleApi("google",
"my_client_id.apps.googleusercontent.com",
"my_redirect_url",
);
in Android.manifest:
<activity android:name="clancey.simpleauth.simpleauthflutter.SimpleAuthCallbackActivity" >
<intent-filter android:label="simple_auth">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="com.googleusercontent.apps.my_client_ID" />
</intent-filter>
</activity>
So, await googleApi.getUserProfile() opens empty google page
up