Skip to content

Confirm Password Reset

PUT
/auth/password-reset

Confirm password reset with token and new password.

Validates the reset token, sets the new password, and marks token as used.

Args: request: Password reset confirmation with token and new password http_request: HTTP request object (for audit logging) db: Database session

Returns: Confirmation message

Raises: 400: Invalid or expired reset token 401: Token verification failed

ConfirmPasswordResetRequest

Confirm password reset request.

object
token
required
Token

Password reset token

string
password
required
Password

New password

string
>= 8 characters <= 128 characters

Successful Response

ConfirmPasswordResetResponse

Confirm password reset response.

object
message
Message
string
default: Password reset successfully

Bad Request

ErrorResponse

Error response.

object
error
required
Error

Error code

string
message
required
Message

Error message

string

Unauthorized

ErrorResponse

Error response.

object
error
required
Error

Error code

string
message
required
Message

Error message

string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object