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
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- functions domain error
I cannot set up the domain for function I’m trying to add the domain api.example.com I can only use Cloudflare as the DNS provider because my domain provider do...
- Storage Bucket Permissions
Hey folks, when enabling CRUD on the bucket level for the role any, should the bucket be accessible when using a session client?