provider Discovery POST /v1/b2b/passwords/discovery/email/reset
@utdk/stytch /v1/b2b/passwords/discovery/email/reset
Reset
Reset the password associated with an email and start an intermediate session. This endpoint checks that the password reset token is valid, hasn’t expired, or already been used. The provided password needs to meet the project's password strength requirements, which can be checked in advance with the password strength endpoint. If the token and password are accepted, the password is securely stored for future authentication and the user is authenticated. Resetting a password will start an intermediate session and return a list of discovered organizations the session can be exchanged into.

Try it

Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

apiB2bPasswordV1B2bPasswordsDiscoveryEmailReset
POST/v1/b2b/passwords/discovery/email/reset
Reset the password associated with an email and start an intermediate session. This endpoint checks that the password reset token is valid, hasn’t expired, or already been used. The provided password needs to meet the project's password strength requirements, which can be checked in advance with the password strength endpoint. If the token and password are accepted, the password is securely stored for future authentication and the user is authenticated. Resetting a password will start an intermediate session and return a list of discovered organizations the session can be exchanged into.

Input

required

The password reset token to authenticate.

required

The password to authenticate, reset, or set for the first time. Any UTF8 character is allowed, e.g. spaces, emojis, non-English characters, etc.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiB2bPasswordV1B2bPasswordsDiscoveryEmailReset()