magicLinkActivate method

  1. @override
Future<AuthResult> magicLinkActivate(
  1. String magicLink
)
override

Implementation

@override
Future<AuthResult> magicLinkActivate(String magicLink) async {
  try {
    final jsonString = await methodChannel
        .invokeMethod<String>('magicLinkActivate', {'magicLink': magicLink});
    return AuthResult.fromJson(jsonString!);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}