Skip to main content

parse

Function parse 

Source
pub fn parse(token: &str) -> Result<KeyId, AuthError>
Expand description

Reads a token written as vcs_<key id>_<secret>: the key id is 16 lowercase hex digits, and the secret is 256 bits in base64url without padding. The secret may hold _, so the parts are found by position.