"BearSSL::Session" not recognized in Espressif8266 platform

Attempting to create a BearSSL session and my call to:

BearSSL::Session session;

Is getting the red squiggle underline and a namespace "BearSSL" has no member "Session" error.

I’m a self taught programmer so I’m probably missing something obvious, but it appears that the platform/framework/library in platformIO does not match this repo:

How do I update PIO to include BearSSL with Sessions?

Here is a snip from my platformio.ini:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino

What IDE are you working with and what’s your platformio.ini and code?

Here is the relevant code:

#include <ESP8266WiFi.h>

BearSSL::WiFiClientSecure client;
client.setInsecure();
BearSSL::Session session;                         //this line marked as error
client.setSession(&session);                      //this line marked as error
fetchURL(&client, host, httpsPort, URL);

I am able to successfully access URL if I comment out the two problem lines. But, I should be able to access URL faster using Session, according to this page:

…a TLS session can be used to cache crypto settings and speed up connections significantly.