update
parent
360501f9d9
commit
1737eec0b6
|
@ -15,6 +15,7 @@ const (
|
||||||
func init() {
|
func init() {
|
||||||
// secret for jwt
|
// secret for jwt
|
||||||
viper.SetDefault("auth.secret", "secret")
|
viper.SetDefault("auth.secret", "secret")
|
||||||
|
viper.SetDefault("auth.name", "app")
|
||||||
|
|
||||||
// expires in sec, '0' to indicate token will not expire
|
// expires in sec, '0' to indicate token will not expire
|
||||||
viper.SetDefault("auth.expire", 1800)
|
viper.SetDefault("auth.expire", 1800)
|
||||||
|
|
Loading…
Reference in New Issue