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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...