1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-08 03:54:17 +00:00

fix: always set secure on cookie (#130)

This commit is contained in:
Chris Danis
2025-01-18 16:33:41 -05:00
committed by GitHub
parent 05a98ebe87
commit fda08ac1cd
2 changed files with 6 additions and 6 deletions

View File

@@ -166,7 +166,7 @@ func (uc *UserController) exchangeOneTimeAccessTokenHandler(c *gin.Context) {
return
}
c.SetCookie("access_token", token, int(time.Hour.Seconds()), "/", "", false, true)
c.SetCookie("access_token", token, int(time.Hour.Seconds()), "/", "", true, true)
c.JSON(http.StatusOK, userDto)
}
@@ -183,7 +183,7 @@ func (uc *UserController) getSetupAccessTokenHandler(c *gin.Context) {
return
}
c.SetCookie("access_token", token, int(time.Hour.Seconds()), "/", "", false, true)
c.SetCookie("access_token", token, int(time.Hour.Seconds()), "/", "", true, true)
c.JSON(http.StatusOK, userDto)
}