Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewAccessToken ¶
GenerateNewAccessToken func for generate a new Access token.
func NewValidator ¶
func NewValidator() *validator.Validate
NewValidator func for create a new validator for model fields.
func StartServerWithGracefulShutdown ¶
func StartServerWithGracefulShutdown(a *fiber.App)
StartServerWithGracefulShutdown function for starting server with a graceful shutdown.
func ValidatorErrors ¶
ValidatorErrors func for show validation errors for each invalid fields.
Types ¶
type TokenMetadata ¶
type TokenMetadata struct {
Expires int64
}
TokenMetadata struct to describe metadata in JWT.
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error)
ExtractTokenMetadata func to extract metadata from JWT.
Click to show internal directories.
Click to hide internal directories.