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
{{ message }}
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
It would be helpful for various app logic to have a JWT instance method, something like jwt.isSigned(), to be able to tell whether the jwt has one or multiple signatures (signed), or has alg: 'none' in the header (unsigned).
For the moment, you have to do something like if (jwt.signature || jwt.signatures) -- if (jwt.isSigned()) would be more readable.
The text was updated successfully, but these errors were encountered:
It would be helpful for various app logic to have a JWT instance method, something like
jwt.isSigned()
, to be able to tell whether the jwt has one or multiple signatures (signed), or hasalg: 'none'
in the header (unsigned).For the moment, you have to do something like
if (jwt.signature || jwt.signatures)
--if (jwt.isSigned())
would be more readable.The text was updated successfully, but these errors were encountered: