|
@@ -16,7 +16,7 @@ var (
|
|
|
func GenToken(account string) string {
|
|
|
token := jwt.New(jwt.SigningMethodHS256)
|
|
|
token.Claims = &jwt.StandardClaims{
|
|
|
- NotBefore: int64(time.Now().Unix()),
|
|
|
+ NotBefore: int64(time.Now().Unix()) - int64(1*time.Second),
|
|
|
ExpiresAt: int64(time.Now().Unix() + 90*24*60*60),
|
|
|
Issuer: "eta_api",
|
|
|
Subject: account,
|