Good day I have set up google oauth2 but for some reason it sticks on account.google.com
my createoath2 function
singInWithProvider({required String provider}) async {
try {
await account.createOAuth2Session(
provider: provider,
);
await Future.delayed(const Duration(microseconds: 500));
await loadUser();
return null;
} catch (e) {
debugPrint("$e");
} finally {
notifyListeners();
}
}
I also added the clientId and app secret in appwrite and this is my android manifest
<activity
android:name="com.linusu.flutter_web_auth_2.CallbackActivity"
android:exported="true">
<intent-filter android:label="flutter_web_auth_2">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="appwrite-callback-[I put my project id here]" />
</intent-filter>
</activity>
for my first login it asked me for my user account but it never created a user or a session. and it has not worked after. it hangs accounts.google.com
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...