覆现了 两个比较核心的token和customer的数据库逻辑
This commit is contained in:
@@ -19,7 +19,7 @@ func TestSignTokenAndParseToken(t *testing.T) {
|
||||
vm := &VestMoreClaims{
|
||||
RegisteredClaims: jwt.RegisteredClaims{
|
||||
IssuedAt: jwt.NewNumericDate(time.Now()),
|
||||
ExpiresAt: jwt.NewNumericDate(time.Now().UTC().Add(1 * time.Hour)), // 设置过期时间为当前时间加24小时
|
||||
ExpiresAt: jwt.NewNumericDate(time.Now().Add(1 * time.Hour)), // 设置过期时间为当前时间加24小时
|
||||
Issuer: "vermore",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user