You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'crit' of undefined
at SignJWT.sign (C:\Users\jvana\Desktop\Work\edrego\node_modules\jose\dist\node\cjs\jwt\sign.js:17:42)
Describe the bug
TypeError: Cannot read property 'crit' of undefined
at SignJWT.sign (C:\Users\jvana\Desktop\Work\edrego\node_modules\jose\dist\node\cjs\jwt\sign.js:17:42)
To Reproduce
Code to reproduce the behaviour:
Expected behaviour
It should throw an error, but I think because the _protectedHeader isn't initialized it never makes it to the actual throw.
Environment:
jose
version: v3.13.0Additional context
Add any other context about the problem here.
jose
too.The text was updated successfully, but these errors were encountered: