authenticateToken static method

Future<bool> authenticateToken({
  1. required String profileToken,
  2. required String refreshToken,
})

Implementation

static Future<bool> authenticateToken(
    {required String profileToken, required String refreshToken}) async {
  try {
    bool success = await _channel.invokeMethod('authenticateToken',
        {'profileToken': profileToken, 'refreshToken': refreshToken});
    return success;
  } on PlatformException catch (error) {
    return Future.error(error);
  }
}