From 3ee2a8eb07774844d96cfd75fd75e35885e27027 Mon Sep 17 00:00:00 2001 From: Aahil Rafiq <128609469+AahilRafiq@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:14:21 +0530 Subject: [PATCH] Update basic-auth.md --- website/docs/middleware/basic-auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/middleware/basic-auth.md b/website/docs/middleware/basic-auth.md index 2afcda61..7ef34b01 100644 --- a/website/docs/middleware/basic-auth.md +++ b/website/docs/middleware/basic-auth.md @@ -12,7 +12,7 @@ Basic auth middleware provides an HTTP basic authentication. ## Usage ```go -e.Use(middleware.BasicAuth(func(username, password string, c *echo.Context) (bool, error) { +e.Use(middleware.BasicAuth(func(c *echo.Context, username, password string) (bool, error) { // Be careful to use constant time comparison to prevent timing attacks if subtle.ConstantTimeCompare([]byte(username), []byte("joe")) == 1 && subtle.ConstantTimeCompare([]byte(password), []byte("secret")) == 1 {