Thalhammer / jwt-cpp

A header only library for creating and validating json web tokens in c++
https://thalhammer.github.io/jwt-cpp/
MIT License
886 stars 241 forks source link

[question] Passing json object as entire payload #216

Closed ktasyaran closed 2 years ago

ktasyaran commented 2 years ago

I looked at examples regarding traits for nlohmann-json. Is there any possibility/workaround to pass a json object as entire payload instead of calling set_payload_claim() for each key I want to specify?

prince-chrismc commented 2 years ago

Currently no, you can see the conversation in #214 but they're recommended fields so the API is designed to follow those practices :)

Dont hesitate if you need more details

ktasyaran commented 2 years ago

Thanks. I looked at that convo and got the reason behind that now.