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

    jwtToken

    The SDK uses this token for user id verification.

    callback

    The client sets the callback in 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)