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
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...
- Images/Videos in storage appearing broke...
I am running into a storage issue after upgrading my self-hosted Appwrite instance , all of my previously uploaded images and videos are now showing as broken i...