Closed vibhuh closed 6 months ago
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
@vibhuh This is a bug in the documentation,
// v2
func (app *App) Get(path string, handlers ...Handler) Router
// v3
func (app *App) Get(path string, handler Handler, middleware ...Handler) Router
Try changing this line:
-> app.Get("/authenticated", AuthMiddleWare(), Profile)
To this line:
-> app.Get("/authenticated", Profile, AuthMiddleWare)
@vibhuh Does that solve your issue?
Question Description
Middleware in the handler is not working as expected.
Code Snippet (optional)
Checklist: