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
As per the JWT specification, it is a valid format to use arrays and objects as embedded payloads in JWT, however the TypeScript definition only allows values of string | number. This should be loosened up a bit.
A valid JWT payload:
These two lines specify the types as Record<string, string | number>.
In particular, allowing arrays is important, for situations such as the example here.
The text was updated successfully, but these errors were encountered:
As per the JWT specification, it is a valid format to use arrays and objects as embedded payloads in JWT, however the TypeScript definition only allows values of
string | number
. This should be loosened up a bit.A valid JWT payload:
These two lines specify the types as
Record<string, string | number>
.In particular, allowing arrays is important, for situations such as the example here.
The text was updated successfully, but these errors were encountered: