Add full refresh token and access token function

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-25 16:13:05 +08:00
parent 32a27d974a
commit 3a86d387bd
13 changed files with 274 additions and 195 deletions

View File

@@ -10,10 +10,11 @@ type config struct {
}
type server struct {
Address string `yaml:"address"`
DebugMode string `yaml:"debug_mode"`
FileLogger string `yaml:"file_logger"`
JwtSecret string `yaml:"jwt_secret"`
Application string `yaml:"application"`
Address string `yaml:"address"`
DebugMode string `yaml:"debug_mode"`
FileLogger string `yaml:"file_logger"`
JwtSecret string `yaml:"jwt_secret"`
}
type database struct {
@@ -38,11 +39,12 @@ type email struct {
}
type secrets struct {
jwt_secret string `yaml:"jwt_secret"`
turnstile_secret string `yaml:"turnstile_secret"`
JwtSecret string `yaml:"jwt_secret"`
TurnstileSecret string `yaml:"turnstile_secret"`
}
type ttl struct {
magic_link_ttl string `yaml:"magic_link_ttl"`
jwt_ttl string `yaml:"jwt_ttl"`
MagicLinkTTL string `yaml:"magic_link_ttl"`
JwtTTL string `yaml:"jwt_ttl"`
RefreshTTL string `yaml:"refresh_ttl"`
}