diff --git a/crypto/encipher/encipher.go b/crypto/encipher/encipher.go index 873418e..e1ef884 100644 --- a/crypto/encipher/encipher.go +++ b/crypto/encipher/encipher.go @@ -30,7 +30,7 @@ func GenerateTokenAes(id uint, identity, client, role string, owner any, extend if !(JwtSecretLen == 16 || JwtSecretLen == 24 || JwtSecretLen == 32) { return "", errcode.ErrJWTSecretKey } - expireTime := time.Now().Add(vars.JwtExpireDay) + expireTime := time.Now().Add(vars.JwtExpire) claims := types.JwtClaims{ ID: id, Identity: identity,