I want to know if user is from Oauth for some function. Right now I'm using current session provider to know if user is created with OAuth or with email (which is not OAuth)
Session session = await account.getSession(sessionId: 'current');
if(session.provider == 'email') {
_userIsOAuth = false;
} else {
_userIsOAuth = true;
}
if (kDebugMode) {
print(session.provider);
print("User is Oauth: $userIsOAuth");
}
which so far, works. I just want to know if there are better way or Appwrite built-in to know. I checked the documents (OAuth2 docs) and don't see such thing.
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- 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...