Read this forum,
Allow Basic Authentication in OH3
Allow Basic Authentication
How to generate an API token
Then in VScode configuration use as username your api token, and password is empty.
BR,