diff --git a/app/middlewares/auth.go b/app/middlewares/auth.go index 0231e7b..f1dd69e 100644 --- a/app/middlewares/auth.go +++ b/app/middlewares/auth.go @@ -13,7 +13,6 @@ import ( func AuthMiddleware() fiber.Handler { return func(c *fiber.Ctx) error { - // check if the endpoint is in the unprotected endpoints if slices.Contains(config.CONFIG.UNPROTECTED_ENDPOINTS, c.Path()) { return c.Next() } @@ -32,7 +31,6 @@ func AuthMiddleware() fiber.Handler { return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{"message": "Unauthorized"}) } - // Decode the token from base64 to string tokenValue, err := base64.StdEncoding.DecodeString(tokenPartValue) if err != nil { return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{"message": "Unauthorized"})