AuthenticationContext
public struct AuthenticationContext : Hashable
AuthenticationContext is used to establish secure connection with the server side infrastructure.
-
Declaration
Swift
public typealias RequestTokenRefreshCallback = ((_ jwtToken: String) -> Void) -
Declaration
Swift
public init(jwtToken: String, callback: RequestTokenRefreshCallback? = nil)Parameters
jwtTokenThe SDK uses this token for user id verification.
callbackThe client sets the
callbackin order to be notified if token becomes invalid. -
Declaration
Swift
public static func == (lhs: AuthenticationContext, rhs: AuthenticationContext) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
AuthenticationContext Structure Reference