Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SecretKey string `koanf:"SecretKey"` // Secret key for signing the token, required. The key should match the algorithm.
Algorithm string `koanf:"Algorithm"` // Algorithm of the token, default is HS256. Supported algorithms: HS256, HS384, HS512
Expire time.Duration `koanf:"Expire"` // Expire time of the token, default is 24 hours
}
Click to show internal directories.
Click to hide internal directories.