Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Filter defines a function to skip middleware. // Optional. Default: nil Filter func(*fiber.Ctx) bool // SuccessHandler defines a function which is executed for a valid token. // Optional. Default: nil SuccessHandler fiber.Handler // ErrorHandler defines a function which is executed for an invalid token. // It may be used to define a custom JWT error. // Optional. Default: 401 Invalid or expired JWT ErrorHandler fiber.ErrorHandler Issuer string `yaml:"issuer"` Audience []string `yaml:"audience"` SignatureAlgorithm string `yaml:"signature_algorithm"` CacheDuration time.Duration `yaml:"cache_duration"` }
Click to show internal directories.
Click to hide internal directories.