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
I started getting uncaught exceptions when receiving tokens that are not strings:
TypeError: jwtString.split is not a function
Since I'm only handling errors exposed by this library I expected a JsonWebTokenError to be thrown when verifying a value other than string.
I saw some issues related to this error but the focus was on throwing or return it on the callback. This way I suggest to test the type of the token before splitting it and throw a JsonWebTokenError if not a string.
The text was updated successfully, but these errors were encountered:
I started getting uncaught exceptions when receiving tokens that are not strings:
Since I'm only handling errors exposed by this library I expected a
JsonWebTokenError
to be thrown when verifying a value other than string.I saw some issues related to this error but the focus was on throwing or return it on the callback. This way I suggest to test the type of the token before splitting it and throw a
JsonWebTokenError
if not a string.The text was updated successfully, but these errors were encountered: