Helpers operations
Helpers operations are responsible for helping developpers who use FansUnited features to have full control over the SDK instance.
The namespace is of course called helpers. The general design of the namespace follows this pattern:
General call:
sdk.helpers.someMethod()
The responses are comprised of different objects you can find here.
General operations
Get SDK configuration
Method: getSDKConfiguration()
This method returns the SDK's configuration.
Example call:
const configuration = sdk.helpers.getSDKConfiguration();
Example result
{
apiKey: "key",
clientId: "clientId",
idSchema: "native",
environment: "prod",
lang: "en",
errorHandlingMode: "standard",
authProvider: {
getIdToken: () => {
return "";
},
logout: () => {}
}
}
Updated about 1 month ago