Thalhammer / jwt-cpp

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

Add set_expires_in and set_issued_now methods #322

Closed bugdea1er closed 6 months ago

bugdea1er commented 6 months ago

Hi there!

I added set_expires_in and set_issued_now method for the jwt builder.

Common usage of the jwt builder is:

This should make it a little bit more convenient.

Update: builder now has the Clock template parameter just like the verifier

bugdea1er commented 6 months ago

Should I update examples or README with the new methods?