summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/web/cookie.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/web/cookie.go b/pkg/web/cookie.go
index 15a2cad..0c39735 100644
--- a/pkg/web/cookie.go
+++ b/pkg/web/cookie.go
@@ -41,12 +41,12 @@ func withSignedValue(value string) x.Option[*http.Cookie] {
))
}
-func ExpireCookie(w http.ResponseWriter, name string) {
- cookie.Expire(w, name,
+func ExpireCookie(w http.ResponseWriter, name string) error {
+ return WriteCookie(w, cookie.Reset(name,
cookie.WithPath("/"),
cookie.WithHttpOnly(true),
cookie.WithSecure(true),
- )
+ ))
}
func CookieValueFrom(c *http.Cookie) string {