master
Evan Chen 2022-01-09 05:51:50 +08:00
parent 360501f9d9
commit 1737eec0b6
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const (
func init() {
// secret for jwt
viper.SetDefault("auth.secret", "secret")
viper.SetDefault("auth.name", "app")
// expires in sec, '0' to indicate token will not expire
viper.SetDefault("auth.expire", 1800)