Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultConfig is the default middleware config. DefaultConfig = MiddlewareConfig{ TokenKey: "token", Skipper: func(*fiber.Ctx) bool { return false }, } )
Functions ¶
func InitServer ¶
InitServer Initialize the service
func RegisterRoute ¶
RegisterRoute register th OAuth routes to router
func TokenHandler ¶
TokenHandler gets the token from request using default config
func TokenHandlerWithConfig ¶
func TokenHandlerWithConfig(cfg *MiddlewareConfig) fiber.Handler
TokenHandlerWithConfig gets the token from request with given config
Types ¶
Click to show internal directories.
Click to hide internal directories.