pub fn validate_token<'a>(
token: &str,
sessions: &'a [SessionRecord],
hmac_key: &[u8],
) -> Result<&'a SessionRecord>Expand description
Validate a token against stored session records. Returns the matching session record if valid.
pub fn validate_token<'a>(
token: &str,
sessions: &'a [SessionRecord],
hmac_key: &[u8],
) -> Result<&'a SessionRecord>Validate a token against stored session records. Returns the matching session record if valid.