Back

Identify User's Auth Method

  • 0
  • Web
  • Cloud
itsjustintime
7 Jan, 2024, 09:28

I just set up Google Auth in my app. It doesn't seem like there's a clear way to distinguish whether or not the user used regular username+password or OAuth2 to set up. Is there a way to get a list of the users who used Google Auth? I'm okay with a scripted version for now so I figured I'd ask if there's an easy solution.

This was one of my favorite features in Firebase as I liked seeing how users were signing in. Actually, seeing the number of Google Auth users in my old app was what prompted me to prioritize setting up the OAuth2 integration.

(screenshot of Firebase for reference)

TL;DR
The user wants to distinguish whether users in their app used regular username+password or OAuth2 to set up. They want a way to get a list of users who used Google Auth. Although there is no clear solution in the support thread, one user suggests using the `appwrite users listIdentities` command, which has a column for identifying the authentication method. However, it is mentioned that this feature should be surfaced in the UI for easier access.
itsjustintime
7 Jan, 2024, 21:30

[SOLVED] Identify User's Auth Method

itsjustintime
7 Jan, 2024, 21:31

appwrite users listIdentities has a column for it. It would be nice if it was surfaced to the UI though.

itsjustintime
7 Jan, 2024, 21:31

Identify User's Auth Method

Drake
8 Jan, 2024, 00:09

This info would be in the session, but a feature request to show that attribute in the console would be good

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more