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 define and use a same options variable as argument for JWT.verify() and JWT.sign(), to reduce duplicated codes.
In this case, JWT.verify() method mutates options object, which causes validation error from JWT.sign().
So I'd like to suggest cloning options parameter rather than mutating by something like Object.assign() .
The text was updated successfully, but these errors were encountered:
I define and use a same options variable as argument for JWT.verify() and JWT.sign(), to reduce duplicated codes.
In this case, JWT.verify() method mutates options object, which causes validation error from JWT.sign().
So I'd like to suggest cloning options parameter rather than mutating by something like Object.assign() .
The text was updated successfully, but these errors were encountered: