authenticateUser
MaestroKit provides the authenticateUser
function to retrieve the currently configured Maestro Site ID. This asynchronous function returns an optional String
, which contains the Site ID if it has been set during configuration, or nil
if it hasn't been configured yet.
Parameters
The following table summarizes the configuration parameters required by MaestroKit:
Parameter | Type | Description | Example |
---|---|---|---|
swid | String | A unique identifier for the user. | "exampleSwid" |
jwt | String (optional) | A JWT token used for authentication with your app's services. | "exampleJWTToken" |
Code Example
await MaestroManager.shared.authenticateUser(swid: "abc", jwt: "123")