Skip to main content

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:

ParameterTypeDescriptionExample
swidStringA unique identifier for the user."exampleSwid"
jwtString (optional)A JWT token used for authentication with your app's services."exampleJWTToken"

Code Example

await MaestroManager.shared.authenticateUser(swid: "abc", jwt: "123")