verifyToken method
This method is used to verify the Token.
Implementation
@override
Future<String?> verifyToken(String userName, String token) async {
String? response = FlyConstants.empty;
try {
response = await mirrorFlyMethodChannel.invokeMethod<String>(
'verifyToken', {"userName": userName, "googleToken": token});
LogMessage.d("verifyToken Result ", " $response");
return response;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}