pub async fn verify_password(
hasher: Option<&Arc<dyn PasswordHasher>>,
password: &str,
hash: &str,
) -> Result<(), AuthError>Expand description
Verify password against hash using the custom hasher (if provided) or
the default scrypt algorithm. Returns Ok(()) on match, or
Err(AuthError::InvalidCredentials) on mismatch.
§Errors
Propagates errors from the configured password hasher.