Add a cache layer in auth to speed up auth

This commit is contained in:
2024-03-23 00:28:27 +08:00
parent 211959167a
commit b69ac44885
11 changed files with 202 additions and 69 deletions

View File

@ -81,3 +81,9 @@ func (v AuthChallenge) IsAvailable() error {
return nil
}
type AuthContext struct {
Session AuthSession `json:"session"`
Account Account `json:"account"`
ExpiredAt time.Time `json:"expired_at"`
}