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.