getUserAuthToken static method

Future<String?> getUserAuthToken()

Implementation

static Future<String?> getUserAuthToken() async {
  try {
    User? loggedInUser = await getLoggedInUser();
    if (loggedInUser != null) {
      var result = await channel.invokeMethod('getUserAuthToken', {});
      return result;
    }else{
      return null;
    }
  }on PlatformException catch (e) {
    debugPrint("Error: $e");
    return null;
  } catch (e) {
    debugPrint("Error: $e");
    return null;
  }
}