Closed bugdea1er closed 6 months ago
Hi there!
I added set_expires_in and set_issued_now method for the jwt builder.
set_expires_in
set_issued_now
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
Should I update examples or README with the new methods?
Hi there!
I added
set_expires_in
andset_issued_now
method for the jwt builder.set_issued_now
sets a "iat" claim by calling system_clock::now() by itself;set_expires_in
sets a "exp" claim by adding the given duration tothe "iat" claimsystem_clock::now()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