chore: update auth page (#1920)

* chore: update auth page

* chore: update
This commit is contained in:
boojack
2023-07-09 21:13:26 +08:00
committed by GitHub
parent 0292f472e0
commit da70917b08
6 changed files with 39 additions and 47 deletions

View File

@ -33,11 +33,9 @@ const (
// 2. The access token has already expired, we refresh the token so that the ongoing request can pass through.
CookieExpDuration = refreshTokenDuration - 1*time.Minute
// AccessTokenCookieName is the cookie name of access token.
AccessTokenCookieName = "access-token"
AccessTokenCookieName = "memos.access-token"
// RefreshTokenCookieName is the cookie name of refresh token.
RefreshTokenCookieName = "refresh-token"
// UserIDCookieName is the cookie name of user ID.
UserIDCookieName = "user"
RefreshTokenCookieName = "memos.refresh-token"
)
type claimsMessage struct {