refreshAndGetAuthToken method
Implementation
@override
Future<bool?> refreshAndGetAuthToken() async {
bool? tokenResponse;
try {
tokenResponse =
await mirrorFlyMethodChannel.invokeMethod<bool>('refreshAuthToken');
debugPrint("refreshAuthToken Result ==> $tokenResponse");
return tokenResponse;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
return false;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
return false;
}
}