package handlers import ( "net/http" "git.jamestombleson.com/jtom38/newsbot-portal/internal/domain" "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/debug" "github.com/labstack/echo/v4" ) func (h *Handler) DebugCookies(c echo.Context) error { user, _ := c.Cookie(domain.CookieUser) token, _ := c.Cookie(domain.CookieToken) refresh, _ := c.Cookie(domain.CookieRefreshToken) model := models.DebugCookiesViewModel{ Username: user.Value, Token: token.Value, RefreshToken: refresh.Value, } return Render(c, http.StatusOK, debug.Cookies(model)) }