Jwt.sign Right-hand side of 'instanceof' is not an object

when i use jwt.sign i get this error “Right-hand side of ‘instanceof’ is not an object” how to fix this

Hi There!

Thank you for posting your question. I found this article on Stack Overflow witha similar question → https://stackoverflow.com/questions/74907805/right-hand-side-of-instanceof-is-not-an-object-jsonwebtoken

Let me know if this fixed your issue.

Thanks
Dawid