pub fn into_decoded(
        self,
        secret: &Secret,
        algorithm: SignatureAlgorithm,
    ) -> Result<Self, Error> {
        match self {
            Compact::Encoded(_) => self.decode(secret, algorithm),
            Compact::Decoded { .. } => Ok(self),
        }
    }
/// Consumes self and convert into decoded form, verifying the signature, if any.
/// If the token is already decoded, this is a no-op
// TODO: Is the no-op dangerous? What if the secret between the previous decode and this time is different?
Consumes self and convert into decoded form, verifying the signature, if any.
If the token is already decoded, this is a no-op
TODO: Is the no-op dangerous.
Consumes self and convert into decoded form verifying the signature if any . If the token is already decoded this is a no - op TODO : Is the no - op dangerous .
pub fn into_decoded(
        self,
        secret: &Secret,
        algorithm: SignatureAlgorithm,
    ) -> Result<Self, Error> {
        match self {
            Compact::Encoded(_) => self.decode(secret, algorithm),
            Compact::Decoded { .. } => Ok(self),
        }
    }
pub fn into_decoded ( self , secret : & Secret , algorithm : SignatureAlgorithm , ) -> Result < Self , Error > { match self { Compact :: Encoded ( _ ) => self . decode ( secret , algorithm ) , Compact :: Decoded { .. } => Ok ( self ) , } }
Consumes self and convert into decoded form, verifying the signature, if any.
Consumes self and convert into decoded form verifying the signature if any .
self
secret
&Secret
algorithm
SignatureAlgorithm
self
secret
&Secret
algorithm
SignatureAlgorithm