authToken method

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

Implementation

@override
Future<String?> authToken() async {
  String? registerResponse = "";
  try {
    registerResponse = await mirrorFlyMethodChannel.invokeMethod<String>('authtoken');
    LogMessage.d("authToken Result ", " $registerResponse");

    return registerResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}