@@ -115,7 +115,8 @@ func (s *Server) TokenGenerate(m json.Map, expire int64) (string, error) {
claims[key] = val
}
if expire > 0 {
- claims["exp"] = time.Now().Add(time.Minute * 30).Unix()
+ //claims["exp"] = time.Now().UTC().Add(time.Minute * 30).Unix()
+ claims["exp"] = expire
tokenString, err := token.SignedString(s.Secret())