pub fn decode_token(s: &str) -> Result<DelegationToken, JoyError>Expand description
Decode a token from its portable string representation.
Whitespace (spaces, newlines, tabs, CRs) is stripped before the base64 stage so a token that survived an over-eager chat client line-wrap still decodes. base64 and JSON errors are rewrapped in a hint that names the most common real cause, namely a truncation from a wrapped paste, so the operator (or an AI tool) knows to re-paste rather than retry with new guesses.