MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / BearerAPIKeyMiddleware

Method BearerAPIKeyMiddleware

api/pkg/di/container.go:212–215  ·  view source on GitHub ↗

BearerAPIKeyMiddleware creates a new instance of middlewares.BearerAPIKeyAuth

()

Source from the content-addressed store, hash-verified

210
211// BearerAPIKeyMiddleware creates a new instance of middlewares.BearerAPIKeyAuth
212func (container *Container) BearerAPIKeyMiddleware() fiber.Handler {
213 container.logger.Debug("creating middlewares.BearerAPIKeyAuth")
214 return middlewares.BearerAPIKeyAuth(container.Logger(), container.Tracer(), container.UserRepository())
215}
216
217// PhoneAPIKeyMiddleware creates a new instance of middlewares.BearerAPIKeyAuth
218func (container *Container) PhoneAPIKeyMiddleware() fiber.Handler {

Callers 1

Calls 4

LoggerMethod · 0.95
TracerMethod · 0.95
UserRepositoryMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected