checkForSession abstract method

Future<AuthenticationResponse> checkForSession({
  1. required String pendingRef,
})

Checks if an enchanted link authentication has been verified by the user.

Provide this function with a pendingRef received by signUp, signIn, signUpOrIn or updateEmail. This function will only return an AuthenticationResponse successfully after the user presses the enchanted link in the authentication email.

Important: This function doesn't perform any polling or waiting, so calling code should expect to catch any thrown exceptions and handle them appropriately. For most use cases it might be more convenient to use pollForSession instead.

Implementation

Future<AuthenticationResponse> checkForSession({required String pendingRef});