add jwt / complete the rotation verification

This commit is contained in:
landaiqing
2024-08-12 22:05:59 +08:00
parent 54f6256c00
commit 48c5aeb0f4
31 changed files with 1702 additions and 44 deletions

10
config/conf_jwt.go Normal file
View File

@@ -0,0 +1,10 @@
package config
type JWT struct {
Secret string `yaml:"secret"`
Expiration string `yaml:"expiration"`
RefreshExpiration string `yaml:"refresh-expiration"`
RefreshTokenKey string `yaml:"refresh-token-key"`
HeaderKey string `yaml:"header-key"`
HeaderPrefix string `yaml:"header-prefix"`
}