SDKConfiguration
public class SDKConfiguration
This is a customization point for the way the SDK behaves internally for some cases. Only mess around in here if you know what you’re doing.
This is a singleton and is threadsafe.
-
Shared instance
Declaration
Swift
public static let shared: SDKConfiguration
-
Set or get
UserSettings.AgreementsCache
related settings dataDeclaration
Swift
public var agreementsCache: AgreementsCache { get set }
-
When you send out a request associated with a user access token and it returns with a 401, the
User
is refreshed and the request is refired with a new set of auth tokens. In the case that your request still comes back with a 401, even though the tokens were just refreshed and should be valid, an infinite loop can ensue. This variable controls how many times it should retry a request that previously came back with a 401. If the count is exceeded then you get back whatever the response and data was from the actual request, and the error will beClientError.RefreshRetryExceededCode
with the NSUnderlyingErrorKey set to actual request error (if there was one)Note
note default = 1Declaration
Swift
public var refreshRetryCount: Int? { get set }
-
Set this to debug access token and refreshing requests. If set to true then every successful request will also invalidate the access token so that a refresh will be forces
Only settable in debug mode
Declaration
Swift
public var invalidateteAuthTokenAfterSuccessfullRequest: Bool
-
How agreements are cached
See moreDeclaration
Swift
public struct AgreementsCache