Sorry, wrong channel. I created a message in the proper one.
Hello everyone,
I searched the channel with no success looking for an answer to my question, sorry if someone already asked about it and I missed it.
We are currently using Hydra and Kratos.
We allow users to sign up with a login/password OR use a social login (Google, Apple, Microsoft…).
To display accurate information in a settings page, would like to know if a user has already created a password. I tried using the Kratos Api with the GET /admin/identities/{id} endpoint (https://www.ory.sh/docs/kratos/reference/api#tag/identity/operation/getIdentity). User who signed up with the username/password method have a property password (perfectly understandable so far) but the user who signed up with a social login as well.
How can I know if a user has already set a password ? Is there an API endpoint that allows me get this piece of info ? My “kratos-container” knows for sure this information as he doesn’t provide a setting ui node to “unlink” the social login as long as a user hasn’t set a password yet (using the Get setting flow endpoint : https://www.ory.sh/docs/kratos/reference/api#tag/frontend/operation/createNativeSettingsFlow)
Many thanks in advance ! 🙏