nov / json-jwt

JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
MIT License
299 stars 81 forks source link

Don't try to modify the passed in hash #123

Closed ccutrer closed 1 month ago

ccutrer commented 2 months ago

I was surprised when I was using a frozen hash (in specs) as claims that I was getting a FrozenError. So re-arrange the initializer to modify self instead of the passed in claims.