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.
There is no way to set
ValidationHelper.nowFunc
although jwt-go provides an internal way to overridetime.Now
by settingnowFunc
. So I added a new ParserOptionWithTimeFunc
to utilize the feature ofnowFunc
.The name
WithTimeFunc
is taken afterTimeFunc
global variable in order to give consistency to the name of exported functions and variables.