Skip to content
  • Manage users
  • Access control

Set a temporary password for a user

If you have set up password authentication for your users, you might want to set or update their password. Kinde lets you set a single-use, temporary password to enable authentication. There are a number of reasons why you might need to do this, for example:

  • You don’t allow self-sign-up, so you provide sign in and password details to all new users
  • You don’t have a valid email for the user
  • The user cannot access their email or phone, to receive a reset password code

When you set a temporary password, you’ll need to communicate it to the user via your own method. Kinde cannot send a temporary password via email or SMS.

Security warning

Link to this section

Setting a temporary password is not a very secure way of helping a user sign in. The password might be overheard or intercepted after you send it, and it could be misused and make your systems vulnerable.

If you have an email for the user, we recommend triggering a password reset instead.

Signing in with a temporary password

Link to this section

To use a temporary password, the user signs in with their email, or other identity credential, and uses the temporary password. They will be immediately prompted to set a new password of their own creation. Once used, the temporary password becomes invalid.

Set a temporary password in Kinde

Link to this section
  1. In Kinde, go to Users, then open the profile of the user.

  2. Scroll to the bottom of the page to the Admin actions section.

  3. In the Manage passwords area, select Set temporary password.

  4. In the window that appears, enter a password.

  5. To view the password, select the ‘eye’ icon.

  6. Select Set temporary password.

  7. Communicate the password to the user.

Set or update a password via Kinde API

Link to this section

The Set user password API allows you to supply a hashed password for a user. If you pass the is_temporary_password: true to the API it will set a password as being single-use.

Include the following information for the password API:

  • hashed_password - the user’s password encrypted using a hashing method or algorithm

  • hashing_method - the name of the algorithm used to encrypt the user’s password. Currently crypt, bcrypt, md5, and wordpress are supported.

  • salt - extra characters added to passwords to make them stronger

  • salt_position - position of salt in password string. Prefix (before) or suffix (after).

    Hashing methodSaltSalt position
    md5Optionalrequired if salt included
    bcrypt
    cryptOptional
    wordpressOptional
  • is_temporary_password - indicates a single use password, the user will be prompted to set a new password after the first time they use it.