WebSocket API and new auth system

Hi all. I went through all available documentation on new auth system but didn’t find how to use it with Home Assistant WebSocket API: https://developers.home-assistant.io/docs/en/external_api_websocket.html
Now i’m using legacy api_password to login. Any one know how to switch to new auth system?