Descope class
Provides functions for working with the Descope API.
This singleton object is provided as a convenience that should be suitable for most app architectures. If you prefer a different approach you can also create an instance of the DescopeSdk class instead.
- Important: Make sure to call the setup function when initializing your application.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- auth → DescopeAuth
-
General functions.
no setter
- enchantedLink → DescopeEnchantedLink
-
Authentication with enchanted links.
no setter
- flow → DescopeFlow
-
Authenticate using an authentication flow
no setter
- magicLink → DescopeMagicLink
-
Authentication with magic links.
no setter
- oauth → DescopeOAuth
-
Authentication with OAuth.
no setter
- otp → DescopeOtp
-
Authentication with OTP codes via email or phone.
no setter
- passkey → DescopePasskey
-
Authentication with passkeys.
no setter
- password → DescopePassword
-
Authentication with passwords.
no setter
- sessionManager ↔ DescopeSessionManager
-
Manages the storage and lifetime of a DescopeSession.
getter/setter pair
- sso → DescopeSso
-
Authentication with SSO.
no setter
- totp → DescopeTotp
-
Authentication with TOTP codes.
no setter
Static Methods
-
setup(
String projectId, [dynamic configure(DescopeConfig)?]) → void -
The setup of the
Descope
singleton.