pub fn verify(auth_key: &ExpiringKey) -> Result<(), Error>
Expand description

Errors

Will return Error::KeyExpired if auth_key.valid_until is past the current_time.

Will return Error::KeyInvalid if auth_key.valid_until is past the None.