Is there any way currently in Kratos to link socia...
# talk-kratos
j
Is there any way currently in Kratos to link social and username/pass in a single identity?
e
Yeah, if you create an account via username & password, you can link accounts via social login. Not sure on the reverse but i believe you can login via social sign in, then add a password to the account.
j
I can't seem to find these in the APIs
we want to do this via migration scripts as we have Auth0 users that have multiple providers in a single identity (e.g username/pass and facebook
e
Believe it would be:
PUT /admin/identities/{id}
And you'd pass in something like:
Copy code
"credentials": {
    "oidc": {
      "google:{google_id}",
      "discord:{discord_id}
    },
}
or for adding a password:
Copy code
"credentials": {
    "password": { .. },
}