setup static method

void setup(
  1. String projectId, [
  2. dynamic configure(
    1. DescopeConfig
    )?
])

The setup of the Descope singleton.

Call this function when initializing you application.

This function must be called before the Descope object can be used

The projectId of the Descope project can be found in the project page in the Descope console. Use the optional configure function to finely configure the Descope SDK.

Implementation

static void setup(String projectId, [Function(DescopeConfig)? configure]) {
  _sdk = DescopeSdk(projectId, configure);
}