refactor(auth): simplify admin session token flow

This commit is contained in:
mlogclub
2026-04-30 17:42:24 +08:00
parent e763a75f78
commit fbafb13a8a
12 changed files with 411 additions and 179 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ type LoggerConfig struct {
}
type AuthConfig struct {
AccessTokenTTLHours int `yaml:"accessTokenTTLHours"`
RefreshTokenTTLDays int `yaml:"refreshTokenTTLDays"`
TokenTTLHours int `yaml:"tokenTTLHours"`
MaxFailedAttempts int `yaml:"maxFailedAttempts"`
CredentialLockMinute int `yaml:"credentialLockMinute"`
}