Crate rocket_auth_token

Source

Structs§

  • AuthCredentials to be encoded into AuthToken and vice-versa
  • AuthToken is to be passed into Authorization header after encoding user credentials

Functions§

  • Decode passed AuthToken and return AuthCredentials
  • Encode AuthCredentials into base64 encoded string and return AuthToken