File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ type JwtTokens struct {
1818 BucketId string `json:"BucketId"`
1919 Issuer string `json:"Issuer"`
2020 // time info
21- IssuedTimeStamp int64 `json:"IssuedTimeStamp"`
22- NotBeforeTimeStamp int64 `json:"NotBeforeTimeStamp"`
23- ExpireTimeStamp int64 `json:"ExpireTimeStamp"`
21+ IssuedTimeStamp int64 `json:"IssuedTimeStamp"`
22+ ExpireTimeStamp int64 `json:"ExpireTimeStamp"`
2423 // other info
2524 Random int64 `json:"Random"`
2625 // times info
@@ -55,8 +54,6 @@ func GenerateToken() (string, error) {
5554 Issuer : "client" ,
5655 // token颁发时间戳,必填参数
5756 IssuedTimeStamp : now ,
58- // token可用时间戳,必填参数
59- NotBeforeTimeStamp : now ,
6057 // token过期时间戳,非必填参数,默认1天过期
6158 ExpireTimeStamp : t .Add (time .Hour * 24 * 6 ).Unix (),
6259 // token使用次数限制,非必填参数,默认限制100次
You can’t perform that action at this time.
0 commit comments