refreshAndGetAuthToken method

  1. @override
Future<bool?> refreshAndGetAuthToken()
override

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;
  }
}