2023-10-08 15:59:42 +07:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
type Jwt struct {
|
2025-09-20 17:17:00 +07:00
|
|
|
Token Token `mapstructure:"token"`
|
|
|
|
|
RefreshToken RefreshToken `mapstructure:"refresh_token"`
|
|
|
|
|
Customer Customer `mapstructure:"customer"`
|
2023-10-08 15:59:42 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Token struct {
|
|
|
|
|
ExpiresTTL int `mapstructure:"expires-ttl"`
|
|
|
|
|
Secret string `mapstructure:"secret"`
|
|
|
|
|
}
|
2025-09-18 01:32:01 +07:00
|
|
|
|
2025-09-20 17:17:00 +07:00
|
|
|
type RefreshToken struct {
|
|
|
|
|
ExpiresTTL int `mapstructure:"expires-ttl"`
|
|
|
|
|
Secret string `mapstructure:"secret"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-18 01:32:01 +07:00
|
|
|
type Customer struct {
|
2025-09-18 12:27:03 +07:00
|
|
|
ExpiresTTL int `mapstructure:"expires-ttl"`
|
|
|
|
|
Secret string `mapstructure:"secret"`
|
2025-09-18 01:32:01 +07:00
|
|
|
}
|