jwt-go icon indicating copy to clipboard operation
jwt-go copied to clipboard

Add a ParserOption to specify nowFunc

Open genkami opened this issue 3 years ago • 0 comments

There is no way to set ValidationHelper.nowFunc although jwt-go provides an internal way to override time.Now by setting nowFunc. So I added a new ParserOption WithTimeFunc to utilize the feature of nowFunc.

The name WithTimeFunc is taken after TimeFunc global variable in order to give consistency to the name of exported functions and variables.

genkami avatar Jun 09 '21 02:06 genkami