Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTConfig ¶
type JWTConfig struct { Key string `yaml:"key" env:"AUTH_JWT_KEY"` TTL int64 `yaml:"ttl" env:"AUTH_JWT_TTL"` }
JWTConfig jwt auth guard config
type TokenProvider ¶
type TokenProvider struct {
Request contracts.RequestContract
}
TokenProvider of jwt auth guard
func (TokenProvider) GetAccessToken ¶
func (tp TokenProvider) GetAccessToken() ([]byte, error)
GetAccessToken: get request token (bearer)
Click to show internal directories.
Click to hide internal directories.