AuthData
@objc
public class AuthData : NSObject
Authentication data that is provided to a TokenProvider
, such as BeamsTokenProvider
.
-
The headers to attach to the
URLRequest
triggered by theTokenProvider
when callingfetchToken(userId:completion:)
.Declaration
Swift
public let headers: [String : String]
-
The query parameters to attach to the
URLRequest
triggered by theTokenProvider
when callingfetchToken(userId:completion:)
.Declaration
Swift
public let queryParams: [String : String]
-
Create an
AuthData
instance based on someheaders
andqueryParams
.Declaration
Swift
@objc public init(headers: [String : String], queryParams: [String : String])
Parameters
headers
A
Dictionary
of header key / value pairs.queryParams
A
Dictionary
of query parameters key / value pairs.