Ah, you can’t!
The docs for embedding chat are here:
And basically YOU personally cannot (and should not) handle the authentication.
The iframe will present the relevant forms for users to login with.
You could use a chat_login scope and build a custom chat for send/receive chat over websocket, but I wouldn’t suggest that for your usecase