Set a new password and sign out everywhere
post
https://api.expiryedge.com/v1/updatePasswordany role (self only)60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/updatePassword' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"newPassword": "N3w!Str0ngPass",
"currentPassword": "0ld!Passw0rd"
}'Response
{
"message": "Password updated successfully"
}Updates the Firebase Auth password, revokes refresh tokens and invalidates all session JWTs issued before now. Send currentPassword too: it is required (send it now - it will become required: 400 without it, 403 when wrong, 503 when the check cannot run).
newPasswordstringrequiredcurrentPasswordstringThe account's current password. Send it now; it will become required.
200
Password updated.
messagestringrequired
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
