You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/conf/jwt.go

18 lines
296 B
Go

package conf
import (
"github.com/synctv-org/synctv/utils"
)
type JwtConfig struct {
Secret string `yaml:"secret" env:"JWT_SECRET"`
Expire string `yaml:"expire" env:"JWT_EXPIRE"`
}
func DefaultJwtConfig() JwtConfig {
return JwtConfig{
Secret: utils.RandString(32),
Expire: "12h",
}
}