Account account = Account(client);
final res = await account.createOAuth2Session(provider: 'google');
I don't think it's the expected beh. is it?
The account is created, but in the frontend the response is null
the createOAuth2Session is a 2 step auth process.
This is a digram that shows the logic https://discord.com/channels/564160730845151244/1111116935938187294/1111119219094994966
Check this for more details https://discord.com/channels/564160730845151244/1114222859166949499/1115653351208652914
.deleteSession() I supose is the method 😅
Yep
You can also use deleteSessions
The difference is that one of them deletes the sessions across all devices (expire the access Token), and the other one only for the current device?
Exactly,
And the deleteSession requires you to pass 'current' to delete the current session.
@Binyamin then I think the flutter documentation is wrong for those methods.
deleteSession Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the Session ID argument, only the unique session ID provided is deleted.
deleteSessions Delete all sessions from the user account and remove any sessions cookies from the end client.
It's interesting what you've mentioned as the sessionId argument is required for deleteSession and there's no option to call with it without the argument.
I'll check the source, and open issue if needed
Sounds good 👍
Recommended threads
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- context deadline exceeded
Hi, in one of my projects i continuously receive context deadline exceeded when trying to reach users API from my local machine: https://fra.cloud.appwrite.io/v...
- 🐛 Realtime Flutter SDK Crash – Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...