Skip to main content

Reset by session

passwords.resetBySession wraps the Reset By Session API endpoint.

Parameters

string
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.

Response

string
The unique ID of the Member.
object
The new Stytch Session.
object
The Member object of the signed-in Member.
object
The Organization object of the Organization the Member has signed into.
string
The JWT for the new Stytch Session.
If the project is configured to use HttpOnly cookies, this field will always be an empty string.
string
The secret token for the new Stytch Session.
If the project is configured to use HttpOnly cookies, this field will always be an empty string.
object
If Protected Auth is enabled and returned fingerprinting results, this field will contain information about the member’s device attributes.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.