Huge refactoring, resolved tight coupling
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user