feat: login with apple
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user