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.
| Parameter | What it is |
|---|---|
baseUrl | Your API gateway, for example https://api-gw.sovereignsolutions.com/ |
apiKey | The API key issued during onboarding |
username | The signed-in user's username, used as the tracking identity |
clientId | Your tenant's client ID |
context | The calling Activity |
The initSDK callback returns success, a token, and an error - inspect error when
success is false to see why initialization failed.
See also: Get Started, Usage.