Change the caller's password
POST
/v1/auth/password
const url = 'http://localhost:8080/v1/auth/password';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"newPassword":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/auth/password \ --header 'Content-Type: application/json' \ --data '{ "newPassword": "example" }'Sets a new password for the signed-in user (typically right after redeeming a reset link) and revokes every refresh token of that user, so other sessions must sign in again. Requires a user token (403 for API keys). 400 when the password is shorter than auth.password_min_length.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
newPassword
string
Examplegenerated
{ "newPassword": "example"}Responses
Section titled “Responses”No Content