DescopeMagicLink class abstract

Authenticate users using a special link that once clicked, can authenticate the user.

In order to correctly implement, the app must make sure the link redirects back to the app. Read more on universal links and app links to learn more. Once redirected back to the app, call the verify function on the appended token URL parameter.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signIn({required DeliveryMethod method, required String loginId, String? redirectUrl, SignInOptions? options}) Future<String>
Authenticates an existing user using a magic link.
signUp({required DeliveryMethod method, required String loginId, SignUpDetails? details, String? redirectUrl}) Future<String>
Authenticates a new user using a magic link.
signUpOrIn({required DeliveryMethod method, required String loginId, String? redirectUrl, SignInOptions? options}) Future<String>
Authenticates an existing user if one exists, or creates a new user using a magic link.
toString() String
A string representation of this object.
inherited
updateEmail({required String email, required String loginId, String? redirectUrl, required String refreshJwt, UpdateOptions? options}) Future<String>
Updates an existing user by adding an email address.
updatePhone({required String phone, required DeliveryMethod method, required String loginId, String? redirectUrl, required String refreshJwt, UpdateOptions? options}) Future<String>
Updates an existing user by adding a phone number.
verify({required String token}) Future<AuthenticationResponse>
Verifies a magic link token.

Operators

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