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 `env:"JWT_SECRET" yaml:"secret"`
Expire string `env:"JWT_EXPIRE" yaml:"expire"`
}
func DefaultJwtConfig() JwtConfig {
return JwtConfig{
Secret: utils.RandString(32),
Expire: "48h",
}
}