pub fn decode_header_only(token: impl AsRef<str>) -> Result<Value, Error>
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)?;