diff --git a/auth/auth.go b/auth/auth.go index bf251f3..5bf79c4 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -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)