feat!: Add JWT

- `RUSTDESK_API_JWT_KEY`如果设置,将会启用JWT,token自动续期功能将失效
- 此功能是为了server端校验token的合法性
This commit is contained in:
lejianwen committed 2025-01-15 19:25:28 +08:00
1 parent ac45a1b5ad
commit edb095ab0b
7 files changed
+39 -22

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@ package config
import "time"
type Jwt struct {
PrivateKey string `mapstructure:"private-key"`
Key string `mapstructure:"key"`
ExpireDuration time.Duration `mapstructure:"expire-duration"`
}