pub fn basic_credentials(encoded: &str) -> Result<(String, Password), AuthError>Expand description
Decode the credentials of Authorization: Basic <encoded> (RFC 7617): base64 of
username:password, UTF-8. The username cannot contain :; the password can.
ยงErrors
AuthError::Malformed when encoded is not base64, not UTF-8 or has no :.