# JWT 401 Error using Node.js & jwt-simple

**URL:** <https://discuss.dev.twitch.com/t/jwt-401-error-using-node-js-jwt-simple/13182>\
**Category:** Extensions\
**Created:** [December 5, 2017, 3:04pm UTC](https://discuss.dev.twitch.com/t/jwt-401-error-using-node-js-jwt-simple/13182 "2017-12-05T15:04:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Joe\_Lavoie](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/joe_lavoie/32/3775_2.png) [@Joe\_Lavoie](https://discuss.dev.twitch.com/u/Joe_Lavoie)\
**Post date:** [December 5, 2017, 9:15pm UTC](https://discuss.dev.twitch.com/t/jwt-401-error-using-node-js-jwt-simple/13182/7 "2017-12-05T21:15:50Z")

</div>

After really hitting this from all angles, I actually found my solution in one of your comments from another post on here 😃

> [@\[SOLVED\] Can't Set Extension Required Configuration](https://discuss.dev.twitch.com/t/solved-cant-set-extension-required-configuration/11880/4):
>
> I quickly looked at the readme, try passing new Buffer('extension\_SecReT=', 'base64') as secret. It doesn’t say anywhere on the sign doc, but on the verify doc [https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback)

`var secret = Buffer.from('sOmESecReT=', 'base64');`

That line saved my butt, as I’m now getting the results I needed. Thank you again!

---

_[View the full topic](https://discuss.dev.twitch.com/t/jwt-401-error-using-node-js-jwt-simple/13182)._
