refreshAndGetAuthToken method

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

Implementation

@override
Future<String?> refreshAndGetAuthToken() async {
  String? tokenResponse;
  try {
    tokenResponse = await mirrorFlyMethodChannel.invokeMethod<String>('refreshAuthToken');
    LogMessage.d("refreshAuthToken Result ", " $tokenResponse");
    return tokenResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}