DescopeEnchantedLink class abstract

Authenticate users using one of three special links that once clicked, can authenticate the user.

This method is geared towards cross-device authentication. In order to correctly implement, the app must make sure the URL redirects to a webpage which will verify the link for them. The app will poll for a valid session in the meantime, and will authenticate the user as soon as they are verified via said webpage. To learn more consult the official Descope docs.

Constructors

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

checkForSession({required String pendingRef}) Future<AuthenticationResponse>
Checks if an enchanted link authentication has been verified by the user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pollForSession({required String pendingRef, Duration? timeout}) Future<AuthenticationResponse>
Waits until an enchanted link authentication has been verified by the user.
signIn({required String loginId, String? redirectUrl, SignInOptions? options}) Future<EnchantedLinkResponse>
Authenticates an existing user using an enchanted link, sent via email.
signUp({required String loginId, SignUpDetails? details, String? redirectUrl}) Future<EnchantedLinkResponse>
Authenticates a new user using an enchanted link, sent via email.
signUpOrIn({required String loginId, String? redirectUrl, SignInOptions? options}) Future<EnchantedLinkResponse>
Authenticates an existing user if one exists, or create a new user using an enchanted link, sent via email.
toString() String
A string representation of this object.
inherited
updateEmail({required String email, required String loginId, String? redirectUrl, required String refreshJwt, UpdateOptions? options}) Future<EnchantedLinkResponse>
Updates an existing user by adding an email address.

Operators

operator ==(Object other) bool
The equality operator.
inherited