remove http only

This commit is contained in:
kandrusyak
2023-07-25 01:53:39 +03:00
parent 7dc6a73c92
commit 59b937bce6

View File

@@ -43,11 +43,13 @@ func Login(c echo.Context) (err error) {
}
c.SetCookie(&http.Cookie{
Name: "accessToken",
Value: _token,
Path: "/",
MaxAge: 31536000,
Expires: time.Now().Add(24 * time.Hour),
Name: "accessToken",
Value: _token,
Path: "/",
MaxAge: 31536000,
Expires: time.Now().Add(24 * time.Hour),
Secure: true,
SameSite: 4,
})
return c.JSON(http.StatusOK, u)