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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...
- RBAC design question
Hi, I am trying to create RBAC so we will have multiple orgs in the app each org will have 3 roles (admin, member and read only) what is the best way to go ab...