diff --git a/auth_jwt.go b/auth_jwt.go index 3db5aca..1804494 100644 --- a/auth_jwt.go +++ b/auth_jwt.go @@ -669,7 +669,7 @@ func (mw *GinJWTMiddleware) TokenGenerator(data interface{}) (string, time.Time, } } - expire := mw.TimeFunc().UTC().Add(mw.Timeout) + expire := mw.TimeFunc().Add(mw.Timeout) claims["exp"] = expire.Unix() claims["orig_iat"] = mw.TimeFunc().Unix() tokenString, err := mw.signedString(token)