Add full refresh token and access token function
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user