parse_token

Function parse_token 

Source
pub fn parse_token(
    token_string: &str,
    public_key: PublicKey,
) -> Result<Biscuit, TokenError>
Expand description

Extracts and parses a Biscuit token from a URL-safe base64 string

This is useful when you need to inspect the token contents directly

§Arguments

  • token_string - URL-safe base64 encoded token string
  • public_key - The public key used to verify the token signature

§Returns

The parsed Biscuit token or an error