Skip to content

Commit

Permalink
refactor: update token expired time
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuxia211 committed Dec 8, 2024
1 parent db26c56 commit 495d7ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/constants/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const (
TypeAccessToken = 0
TypeRefreshToken = 1

AccessTokenTTL = time.Minute * 15 // Access Token 有效期15分钟
RefreshTokenTTL = time.Hour * 24 * 7 // Refresh Token 有效期7天
Issuer = "west2-online" // token 颁发者
AccessTokenTTL = time.Hour * 24 * 7 // Access Token 有效期7天
RefreshTokenTTL = time.Hour * 24 * 30 // Refresh Token 有效期30天
Issuer = "west2-online" // token 颁发者

AuthHeader = "Authorization" // 获取 Token 时的请求头
AccessTokenHeader = "Access-Token" // 响应时的访问令牌头
Expand Down

0 comments on commit 495d7ae

Please sign in to comment.