Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(provider UserProvider) func(next echo.HandlerFunc) echo.HandlerFunc
Middleware is a echo MiddlewareFunc that extracts session data from incoming HTTP requests and handles automatic issuing of new access tokens for provided refresh tokens. trunk-ignore(golangci-lint/gocognit)
Types ¶
type UserProvider ¶
UserProvider is used to retrieve the user by name.
type UserProviderFunc ¶
UserProviderFunc is a convenience type for implementing UserProvider.
Click to show internal directories.
Click to hide internal directories.