(Solved) How to fix error algorithms should be set express-jwt?

By Gulshan Saini
Published in NodeJS
August 28, 2020
1 min read

While using package express-jwt, I faced issue if (!options.algorithms) throw new Error(‘algorithms should be set’)

Below is stack trace of same



Add algorithms property in expressJwt constructor as follows


Previous Article
(Solved) Unexpected end of JSON input while parsing near '...'?

Gulshan Saini

Fullstack Developer

Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Related Posts

(Solved) How to fix UnauthorizedError invalid algorithm?

August 30, 2020
1 min
© 2021, All Rights Reserved.

Quick Links

Advertise with usContact UsBrowserCSSPythonPuppeteer

Social Media