-
Notifications
You must be signed in to change notification settings - Fork 948
Suggestion to create method withPayload in JWTCreator.java #445
Description
Description
Rigth now, I have my own implementation of a JWT with its own Header and Payload class. But, I am struggling with signing, decoding and verifying the JWT so I have decided to use an external library like this one. As I said, I already have my own payload (and it is kind of extensive), it has a lot of keys and values. Some of them are JSONObjects so if I want to use this library I just can't initialize JWTCreator because I don't have the function withClaim(String name, Object value) in this file.
So, it is a reason for this? I suggest create a new method similar to withHeader but for the payload.
Maybe there is another solution that I don't know so this change is unnecessary.
If you think this is a good idea, I am up to make the change and create the tests