signUpOrIn abstract method

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

Authenticates an existing user if one exists, or create a new user using an enchanted link, sent via email.

The caller should use the returned EnchantedLinkResponse.linkId to show the user which link they need to press in the enchanted link email, and then use the EnchantedLinkResponse.pendingRef value to poll until the authentication is verified.

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

Implementation

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