IPActiveSession
public class IPActiveSession : Decodable
ACActiveSession describes a currently active IAMPASS session. Instances of this class are created in response to calls to IPUser.get_active_sessions. A session is considered active if the user has been authenticated and not logged out. ACActiveSession can be used to display and end a user’s sessions.
-
The date and time the session was created.
Declaration
Swift
public let created: Date -
The current status of the session.
Declaration
Swift
public let status: SessionStatus -
The ID of the session.
Declaration
Swift
public let id: String -
The user device for the session
Declaration
Swift
public var device: IPUser? -
Used to create an instance of ACActiveSession from a JSON server response.
Declaration
Swift
required public init(from decoder: Decoder) throws -
Closes the session
Declaration
Swift
public func close(success: @escaping () -> Void, failure: @escaping (_ error: Error?) -> Void)Parameters
successCode block called if the session is closed.
failureCode block to call if the request fails.
IPActiveSession Class Reference