From e35d93e8071081e74240bcc8a7ac5032cef450d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Benouarets?= Date: Thu, 15 Jan 2026 20:28:04 +0100 Subject: [PATCH] feat(auth): Add login, register, session_info and api creation --- app/middlewares/auth.go | 2 -- 1 file changed, 2 deletions(-) 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"})