Function decode_token

pub fn decode_token(token_string: &str) -> Result<Vec<u8>, TokenError>
Expand description

Decode a URL-safe base64 encoded token string to binary

§Arguments

  • token_string - URL-safe base64 encoded token string

§Returns

Binary token data or TokenError if decoding fails