Skhmt / tapic

Twitch API & Chat. A javascript library for doing things with twitch chat, APIs, and pubsub. Can be used to make a HTML or Node.js bot. Or something.
MIT License
18 stars 5 forks source link

Uncaught TypeError: Cannot read property 'user_name' of undefined #7

Closed ArmandAbrahamian closed 7 years ago

ArmandAbrahamian commented 7 years ago

Hi I'm getting an error when doing the setup for Tapic in the example after putting in the Oauth key:

Uncaught TypeError: Cannot read property 'user_name' of undefined at tapic.js:108 at tapic.js:309

Skhmt commented 7 years ago

Anything else to help me track down the bug?

ArmandAbrahamian commented 7 years ago

It appears to me that it was a problem on my end. I thought I was using an Oauth key from my Twitch Extension but it was actually a an authentication JWT (JSON Web Token). I'm assuming the error was caused by this being passed in.

Skhmt commented 7 years ago

Sounds good!