I’ve tried “pio pkg update”
I’m trying to add basic auth to my webserver - as per this example, but the Webserver lib PIO is using appears different/out of date (it doesn’t have the authenticateBasicSHA1 function).
How do I either force PIO to update, or specify I want to use the new library?
The library you are referring to is a builtin library and is part of the Espressif32 Arduino Core.
So the installed platform-espressif32 version is relevant!
Also you are referring to Espressif32 Arduino 3.x which is is not available to PlatformIO officially. You therefore have to use pioarduino’s platform-espressif32 to get the latest 3.1.1 Arduino core:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.11/platform-espressif32.zip