hey peeps, is it possible to check if an identity ...
# ory-network
b
hey peeps, is it possible to check if an identity already exists using ory admin client in ory network in go SDK. if that's possible please ping me the docs related to that. TIA
w
If you know the identity id then you can just get the identity https://github.com/ory/sdk/blob/master/clients/client/go/docs/IdentityApi.md#getidentity
c
You can also get it by email, like so:
oc.IdentityApi.ListIdentities(oc.AuthCtx(ctx)).CredentialsIdentifier(email).Execute()
b
💗 thank so much