DescopeSdk constructor

DescopeSdk(
  1. DescopeConfig config
)

Creates a new DescopeSdk instance with the given DescopeConfig.

The projectId of the Descope project can be found in the project page in the Descope console. The baseUrl is an optional override for the URL of the Descope server, in case you need to access it through a CNAME record.

Implementation

factory DescopeSdk(DescopeConfig config) {
  final client = DescopeClient(config);
  return DescopeSdk._internal(config, Flow(client), Auth(client), Otp(client), Totp(client), MagicLink(client), EnchantedLink(client), OAuth(client), Sso(client), Passkey(client), Password(client));
}