acheck_password_with_timing_attack_mitigation
See check_user_with_timing_attack_mitigation.
def acheck_password_with_timing_attack_mitigation(
user: User | None,
password: string
) - > boolean
See check_user_with_timing_attack_mitigation.
Parameters
| Name | Type | Description |
|---|---|---|
| user | `User | None` |
| password | string | The raw password string to be verified against the user's hashed password. |
Returns
| Type | Description |
|---|---|
boolean | True if the password is valid for the user, False otherwise; returns None if performing a dummy password hash for a non-existent user. |