fn base64_decode(encoded_token: &str) -> Result<Self, Error> {
        let token_bytes = base64::decode_config(encoded_token, base64::STANDARD)
            .map_err(|_| Error::ExpiryExtraction)?;

        let token: Token = DefaultOptions::new()
            .with_fixint_encoding()
            .allow_trailing_bytes()
            .with_limit(DESERIALIZATION_BYTES_LIMIT as u64)
            .deserialize(&token_bytes)
            .map_err(|_| Error::ExpiryExtraction)?;
        Ok(token)
    }
/// Decode token structure from base64 string.
Decode token structure from base64 string.
Decode token structure from base64 string .
fn base64_decode(encoded_token: &str) -> Result<Self, Error> {
        let token_bytes = base64::decode_config(encoded_token, base64::STANDARD)
            .map_err(|_| Error::ExpiryExtraction)?;
        let token: Token = DefaultOptions::new()
            .with_fixint_encoding()
            .allow_trailing_bytes()
            .with_limit(DESERIALIZATION_BYTES_LIMIT as u64)
            .deserialize(&token_bytes)
            .map_err(|_| Error::ExpiryExtraction)?;
        Ok(token)
    }
fn base64_decode ( encoded_token : & str ) -> Result < Self , Error > { let token_bytes = base64 :: decode_config ( encoded_token , base64 :: STANDARD ) . map_err ( | _ | Error :: ExpiryExtraction ) ? ; let token : Token = DefaultOptions :: new ( ) . with_fixint_encoding ( ) . allow_trailing_bytes ( ) . with_limit ( DESERIALIZATION_BYTES_LIMIT as u64 ) . deserialize ( & token_bytes ) . map_err ( | _ | Error :: ExpiryExtraction ) ? ; Ok ( token ) }
Decode token structure from base64 string.
Decode token structure from base64 string .
encoded_token
&str
encoded_token
&str