Once logged in with an account, if i log out and try to log in with another google account, i get logged in with the previous google account insted of new one. Also, there won't be any new user entry in the appwrite console as well.
here is the code i used: try { await _client.createOAuth2Session(provider: 'google'); final currentUser = await _client.get(); logger.i(currentUser.email); await _notificationService.registerDevice(currentUser.$id); return currentUser.toDomain(); } catch (e) { throw const AuthenticationException("Something went wrong"); }
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
sounds like you're running into this: https://github.com/appwrite/appwrite/issues/7021
I suggest you 👍🏼 the issue
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....