user auth register
This commit is contained in:
@@ -29,6 +29,7 @@ type Config struct {
|
||||
Jwt Jwt `mapstructure:"jwt"`
|
||||
Log Log `mapstructure:"log"`
|
||||
S3Config S3Config `mapstructure:"s3"`
|
||||
Fonnte Fonnte `mapstructure:"fonnte"`
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -79,3 +80,15 @@ func (c *Config) Port() string {
|
||||
func (c *Config) LogFormat() string {
|
||||
return c.Log.LogFormat
|
||||
}
|
||||
|
||||
func (c *Config) GetFonnte() *Fonnte {
|
||||
return &c.Fonnte
|
||||
}
|
||||
|
||||
func (c *Config) GetCustomerJWTSecret() string {
|
||||
return c.Jwt.Customer.Token.Secret
|
||||
}
|
||||
|
||||
func (c *Config) GetCustomerJWTExpiresTTL() int {
|
||||
return c.Jwt.Customer.Token.ExpiresTTL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user