feat: login with apple

This commit is contained in:
VaalaCat
2024-09-04 18:15:49 +00:00
parent 13148b95e3
commit 0948d23239
13 changed files with 268 additions and 41 deletions

View File

@@ -33,7 +33,8 @@ type RedisConf struct {
}
type JWTConfig struct {
Secret string `mapstructure:"secret"`
Secret string `mapstructure:"secret"`
ExpireSec int64 `mapstructure:"expire_sec"`
}
type AppleConf struct {
@@ -62,6 +63,7 @@ func fillDefaultSettings() {
viper.SetDefault("debug", false)
viper.SetDefault("db.type", "sqlite")
viper.SetDefault("db.dsn", "toyboom.db")
viper.SetDefault("jwt.expire_sec", 86400*30) // 30 days
}
func setConfigParams() {