Set a new password and sign out everywhere

posthttps://api.expiryedge.com/v1/updatePassword
any role (self only)60/minJede Methode
Anfrage
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"
}'
Antwort
{
  "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).

Body-Parameter

application/json
  • newPasswordstringerforderlich
  • currentPasswordstring
    The account's current password. Send it now; it will become required.

Rückgabe

200
Password updated.
  • messagestringerforderlich

Fehler

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.