Generate and sign jwt in rule to force user changing password after first login

Hello,

We are trying to use code provided by Auth0 in their documentation to force user changing password after first login :

But, we got and error : “jwt is not defined” on line “jwt.sign”. So how to import jwt or how to use it in auth0?

Thank you for replies.

Best regards.

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!