DKSession
@objc
public class DKSession : NSObject
Memory-based storage for credentials within the current app session. Must be reconfigured every time the app leaves memory.
-
The user object used to authenticate all network requests during lifetime of the app session. This object must contain a
tokento authenticate the network requests. A user with thetokenvariable is only returned by the/authAPI endpoint.Declaration
Swift
@objc public static var user: DKUser? -
The token used to authenticate all requests with the Dropmark API. Set this token as soon as the app starts to ensure generated requests are properly authenticated. The variable can be set manually on app launch, or optionally set by a
keys.plistfile belonging to the target.Declaration
Swift
@objc public static var apiToken: String? { get set }
View on GitHub
Install in Dash
DKSession Class Reference