Closed iarspider closed 1 year ago
Hello! Thanks for the issue. If this is a general help question, for a faster response consider joining the official Discord Server
Else if you have an issue with the library please wait for someone to help you here.
This is expected behaviour. You cannot log into chat with a client credential token
I was trying to get Client to auto-refresh the token, but stumbled upon a few issues:
Client.from_client_credentials(...).start()
raisesAuthenticationError
. The actual exception is raised insideself._client._http.validate
, which can't handle the situation when bothtoken
andself.token
areNone
. The fix is easy:But even fixing that is not enough: for application tokens (generated by
_generate_login
) the response of/oauth2/validate
does not containlogin
oruser_id
- whichWSConnection._connect(...)
expects.