fix: patch version 2.1

This commit is contained in:
Arkaprabha Chakraborty
2026-02-13 00:17:17 +05:30
parent 2a46aa7d79
commit f9863d9dfb
4 changed files with 32 additions and 8 deletions

View File

@@ -187,6 +187,7 @@ func login(c echo.Context) error {
// Set httpOnly cookie
cookie := &http.Cookie{
Domain: os.Getenv("COOKIE_DOMAIN"),
Name: "token",
Value: token,
Path: "/",
@@ -210,6 +211,7 @@ func logout(c echo.Context) error {
Path: "/",
HttpOnly: true,
MaxAge: -1, // Delete cookie
Domain: os.Getenv("COOKIE_DOMAIN"),
}
c.SetCookie(cookie)