Initialisation
Call the SuperTokens.initialise
function: API Reference
- To be called at least once before any http request is made to any of your APIs that require authentication.
- You only need to call this once in your app.
do {
try SuperTokens.initialise(refreshTokenEndpoint: "http://api.example.com/api/refresh", sessionExpiryStatusCode: 440, refreshAPICustomHeaders: NSDictionary())
} catch SuperTokensError.invalidURL {
} catch {
}
- To understand the various parameters, please visit the API reference link above.