Delete a Member's password.
This endpoint only works for Organization-scoped passwords. For cross-org password Projects, use Require Password Reset By Email instead.
Delete a Member's password.
This endpoint only works for Organization-scoped passwords. For cross-org password Projects, use Require Password Reset By Email instead.
RBAC Enforced API
When a Member Session is passed in the Authorization headers, Stytch will enforce that the Member has permission to take the update.info.delete.password Action on the stytch.member or stytch.self (depending on the target MemberID) Resource prior to honoring the request.
To learn more, see our RBAC guide.
const stytch = require('stytch');
const client = new stytch.B2BClient({
project_id: 'PROJECT_ID',
secret: 'SECRET',
});
const params = {
organization_id: "organization-test-07971b06-ac8b-4cdb-9c15-63b17e653931",
member_password_id: "member-password-test-51861cbc-d3b9-428b-9761-227f5fb12be9",
};
const options = {
authorization: {
session_token: 'mZAYn5aLEqKUlZ_Ad9U_fWr38GaAQ1oFAhT8ds245v7Q',
},
};
client.organizations.members.deletePassword(params, options)
.then(resp => { console.log(resp) })
.catch(err => { console.log(err) });
{
"member": {...},
"member_id": "member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f",
"organization": {...}
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"status_code": 200
}