config property
DescopeConfig
get
config
The configuration of the Descope
singleton.
Set this property instead of Descope.projectId in your application's initialization code if you require additional configuration.
Important: To prevent accidental misuse only one of config
and projectId
can
be set, and they can only be set once. If this isn't appropriate for your use
case you can also use the DescopeSdk class directly instead.
Implementation
static DescopeConfig get config => _config;
set
config
(DescopeConfig config)
Implementation
static set config(DescopeConfig config) {
assert(_config.projectId == '');
_config = config;
}