pub fn decode_code<T: DeserializeOwned>(
prefix: &str,
s: &str,
) -> Result<T, EnvelopeError>Expand description
Decode {prefix}{base64url(json)} back into T. Trims surrounding
whitespace first, so a pasted code with stray leading/trailing newlines
still decodes.