Skip to main content

Authentication

initSDK takes your credentials directly and handles the token exchange internally - there is no separate manual OAuth2 call to make before initializing the SDK on iOS.

ParameterWhat it is
baseUrlYour API gateway, for example https://api-gw.sovereignsolutions.com/
apiKeyThe API key issued during onboarding
usernameThe signed-in user's username, used as the tracking identity
clientIdYour tenant's client ID

The initSDK completion handler returns success, an accessToken, and an error - persist the token if your app needs it elsewhere, and use refreshAccessToken to renew it.


See also: Get Started, Usage.