Function torrust_tracker::tracker::auth::verify
source · pub fn verify(auth_key: &ExpiringKey) -> Result<(), Error>Expand description
It verifies an ExpiringKey. It checks if the expiration date has passed.
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.