HomeTutorsContact
NodeJS
(Solved) How to fix error algorithms should be set express-jwt?
Gulshan Saini
August 28, 2020
1 min

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

Below is stack trace of same

Error

Solution

Add algorithms property in expressJwt constructor as follows


Tags

#express#express-jwt
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
© 2020, All Rights Reserved.

Quick Links

Advertise with usContact Us

Social Media