Change connection type for existing user


I created a user through node-auth0. Using passwordless (connection = ‘email’), user receives email, clicks magic link and is logged to the app for the first time.
Now I would like the user to enable login with email/password. user defines password and click submits.

When i try to update user profile with password I receive error:

  "statusCode": 400,
  "error": "Bad Request",
  "message": "The specified connection is not supported for this operation",
  "errorCode": "operation_not_supported"

How can I change connection to = ‘Username-Password-Authentication’ and update user profile with password? When i try to update user connection type the error appears:

  "statusCode": 400,
  "error": "Bad Request",
  "message": "The connection (Username-Password-Authentication) does not exist.",
  "errorCode": "inexistent_connection"

Is it due to lack of Username-Password-Authentication inside user.identities ?
How can i add it to the user.identities array?

Hi @stopyransky,

Welcome to the Auth0 Community!

Unfortunately, it is not possible to change the user’s connection type.

In this scenario, I recommend that you use the Account Link Extension to link the accounts of the user so that they can use both their Passwordless and regular email and password to log in.

After linking these accounts, the various user profile(s) information will populate in the primary user’s profile identities array.

Please take a look at this document for details on how Account Linking works.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.