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
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- Next.js SSR Site Times Out on First Visi...
Hey everyone, I'm running a Next.js SSR site on a self-hosted Appwrite server (v1.9.0), and I've noticed a strange behavior that I'm hoping someone can help me...
- Appwrite migration stuck on pending
Migration an existing self hosted 1.9.0 to a new VPS tuning self hosted 1.9.0.. import data recognises the api url, project id and api and then when I create, i...