Function sectok::decode[][src]

pub fn decode(uri: &str) -> Option<String>

Decodes the secret-token URI into a secret.

This function returns None when uri:

  • Does not start with the PREFIX
  • Has no token
  • Has token that contains invalid percent-encoded UTF-8