summaryrefslogtreecommitdiff
path: root/pkg/web/cookie.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-07 23:28:30 -0600
committermo khan <mo@mokhan.ca>2025-05-07 23:28:30 -0600
commitfab3353a96af04f8da2ee534ec9184e267378721 (patch)
tree698067d76d5ad9fb7d707fb19eec754253bbb48c /pkg/web/cookie.go
parent047648932d901194956289df59fca0a4b260d084 (diff)
feat: fallback to unsigned value
Diffstat (limited to 'pkg/web/cookie.go')
-rw-r--r--pkg/web/cookie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/web/cookie.go b/pkg/web/cookie.go
index bb91c2b..d8ba658 100644
--- a/pkg/web/cookie.go
+++ b/pkg/web/cookie.go
@@ -34,7 +34,7 @@ func NewCookie(name, value string, options ...x.Option[*http.Cookie]) *http.Cook
func withSignedValue(value string) x.Option[*http.Cookie] {
signature, err := Signer.Sign([]byte(value))
if err != nil {
- return nil
+ return cookie.WithValue(value)
}
return cookie.WithValue(fmt.Sprintf(
"%v%v%v",