Skip to main content

split_token

Function split_token 

Source
pub fn split_token(token: &str) -> Result<(&str, &str), TokenCodecError>
Expand description

Splits a token string payload_hex.signature_hex into its two hex segments.

ยงErrors

Returns TokenCodecError::InvalidFormat when the token exceeds the maximum length, does not contain exactly one separator, or has an empty segment.