Session
public struct Session : Encodable, JSONEncodable, Hashable
The Session object allows correlating user activity during a session whether or not they are actually logged in.
-
Long-lived token identifying the customer interacting with the marketplace. If your users are always logged in you may use a hash of your customer ID. If your users may interact with your app or site while logged out we recommend generating a random identifier (UUIDv4) on first load and store it on local storage (cookie, local storage, etc) and let it live for at least a year.
Declaration
Swift
public var sessionId: String
-
Undocumented
Declaration
Swift
public init(sessionId: String)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws