diff --git a/middlewares/authentication.go b/middlewares/authentication.go index 2a40029..e2de2d7 100644 --- a/middlewares/authentication.go +++ b/middlewares/authentication.go @@ -31,6 +31,11 @@ func AuthMiddleware(c *fiber.Ctx) error { if !active { denyAccess = true + + err = sess.Destroy() + if err != nil { + return err + } } }