Function jsonwebtokens::raw::decode_header_only
source · Expand description
Decodes just the header of a token
This just adds a little convenience over doing:
let TokenSlices {header, .. } = raw::split_token(token)?;
let header = raw::decode_json_token_slice(header)?;