provider Passwords POST
/v1/passwords/session/reset @utdk/stytch
/v1/passwords/session/reset Reset
Reset the user’s password using their existing session. The endpoint will error if the session does not have a password, email magic link, or email OTP authentication factor that has been issued within the last 5 minutes. This endpoint requires either a `session_jwt` or `session_token` be included in the request.
Note that a successful password reset via an existing session will revoke all active sessions for the `user_id`, except for the one used during the reset flow.
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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiPasswordV1PasswordsSessionReset()