mirror of https://github.com/golang-jwt/jwt.git
updated TimeFunc documentation
This commit is contained in:
parent
2fecbc3a69
commit
8de1bb8a61
5
jwt.go
5
jwt.go
|
@ -9,8 +9,9 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// TimeFunc is used when parsing token to validate "exp" claim (expiration time).
|
||||
// You can override it to use another time zone (UTC for example).
|
||||
// TimeFunc provides the current time when parsing token to validate "exp" claim (expiration time).
|
||||
// You can override it to use another time value. This is useful for testing or if your
|
||||
// server uses a different time zone than your tokens.
|
||||
var TimeFunc = time.Now
|
||||
|
||||
// Parse methods use this callback function to supply
|
||||
|
|
Loading…
Reference in New Issue