signUpOrIn abstract method

Future<String> signUpOrIn({
  1. required DeliveryMethod method,
  2. required String loginId,
  3. String? redirectUrl,
  4. SignInOptions? options,
})

Authenticates an existing user if one exists, or creates a new user using a magic link.

The magic link will be sent to the user identified by loginId via a delivery method of choice.

Important: Make sure the delivery information corresponding with the delivery method is given either in the optional user parameter or as the loginId itself, i.e., the email address, phone number, etc.

Important: Make sure a default magic link URL is configured in the Descope console, or provided by this call via redirectUrl.

Implementation

Future<String> signUpOrIn({required DeliveryMethod method, required String loginId, String? redirectUrl, SignInOptions? options});