signIn abstract method

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

Authenticates an existing user using an enchanted link, sent via email.

An enchanted link will be sent to the user identified by loginId. 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> signIn({required String loginId, String? redirectUrl, SignInOptions? options});