NodeJS - Trigger Uncaught Exception / Authentification Failed

My example is to generate an implict auth code.
As we were debugging your scope issue. Not the token type.

a code will give you a code to exhcnage for an access token and refresh token.
a token will give you a non refreshable access token

Generally for a chat bot you would use the code flow not the token flow.