Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Add a ParserOption to specify nowFunc #472

Open
wants to merge 1 commit into
base: release_4_0_0
Choose a base branch
from

Conversation

genkami
Copy link

@genkami genkami commented Jun 9, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant