activate method

Future<AuthResult> activate(
  1. String magicLink
)

Activates a magic link. This function handles both login and registration magic links.

Parameters:

  • magicLink: The magic link from the URL sent to the user.

Returns: A Future<AuthResult> object that includes a redirect URL and saves the authorization token and (optional) refresh token securely to the device.

Throws: PassageError

Implementation

Future<AuthResult> activate(String magicLink) {
  return PassageFlutterPlatform.instance.magicLinkActivate(magicLink);
}