Credentials
public struct Credentials
Struct used to specify the type of authentication being used.
-
A bearer token, for example a JWT. This will be sent in an
Authorization: Bearerheader.Declaration
Swift
public static func bearerAuthentication(token: String) -> Credentials -
Basic username/password authentication. This will be used to construct an
Authorization: Basicheader.Declaration
Swift
public static func basicAuthentication(username: String, password: String) -> Credentials
View on GitHub
Credentials Structure Reference