Why my authendicate token is not working?

You are generating an app access token with the client credentials flow so that’s why it is not working. You need a user access token. Use either OAuth Implicit Code Flow or OAuth Authorization Code Flow (or the OIDC variants).

Keep in mind since this is a user access token the user whose account will be connecting to chat needs to accept the request via their browser. It cannot be done completely server-side.

1 Like