verifyToken method

  1. @override
Future<String?> verifyToken(
  1. String userName,
  2. String token
)
override

Performs the same checks as verify but without throwing an AssertionError if const Object() is used as the instance token.

This method will be deprecated in a future release.

Implementation

@override
Future<String?> verifyToken(String userName, String token) async {
  String? response = "";
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<String>(
        'verifyToken', {"userName": userName, "googleToken": token});
    debugPrint("verifyToken Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}