Rank 1: Thread
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.
Votes
0
Replies
3
Participants
Unknown
Messages
4
Rank 1: Thread
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.
Rank 1: Thread
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