waiting-for-dev / warden-jwt_auth

JWT token authentication with warden
MIT License
113 stars 56 forks source link

undefined method `merge' for String in UserPayloadHelper #25

Closed zaviermiller closed 4 years ago

zaviermiller commented 4 years ago

I am currently getting an error when using this gem with devise-jwt. In the payload_for_user method, the user.jwt_payload is merged with the payload from the gem. This field, though, is already a JWT token string, so I get the error: undefined method 'merge' for <String:0x000055c4332f0df8&gt>

I haven't heard of anyone having this problem before, so I am unsure of the cause. Do you have any insight?

zaviermiller commented 4 years ago

Sorry, I am working with old code I didn't write. Found the issue.