TokenType

public enum TokenType : CustomStringConvertible

TokenType is used for token authentication over a bearer token or a custom defined token.

  • describes the bearer token authentication.

    Declaration

    Swift

    case bearer(token: String)
  • describes a custom definable token authentication.

    Declaration

    Swift

    case custom(token: String)
  • description variable returns a String representation of the two token types

    Declaration

    Swift

    public var description: String { get }