Huge refactoring, resolved tight coupling

This commit is contained in:
PB
2024-07-19 21:51:16 +02:00
parent 71a43d17a1
commit a73f2b2921
31 changed files with 563 additions and 477 deletions

View File

@@ -1,7 +1,7 @@
package server
import (
"git.pbiernat.dev/egosport/identity-svc/internal/service"
"git.pbiernat.io/egommerce/identity-service/internal/service"
"github.com/gofiber/fiber/v2"
)
@@ -26,6 +26,7 @@ func (s *Server) LoginHandler(c *fiber.Ctx) error {
}
cookie := service.AuthService.Cookie("auth_token", token)
// ^^ FIXME move cookkie creation to separate service
c.Cookie(cookie)
return c.JSON(&AuthLoginResponse{JWTToken: token})