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
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...