getCurrentAuthToken method
This method is used to get the AuthToken.
Implementation
@override
Future<String> getCurrentAuthToken() async {
String? tokenResponse;
try {
tokenResponse = await mirrorFlyMethodChannel
.invokeMethod<String>('getCurrentAuthToken');
LogMessage.d("getCurrentAuthToken Result ", " $tokenResponse");
return tokenResponse ?? FlyConstants.empty;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}