updated TimeFunc documentation

This commit is contained in:
Dave Grijalva 2014-02-10 17:27:59 -08:00
parent 2fecbc3a69
commit 8de1bb8a61
1 changed files with 3 additions and 2 deletions

5
jwt.go
View File

@ -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