You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro.cookies.get(key) returns undefined if cookie doesn't exist
6
+
7
+
With this change, Astro.cookies.get(key) no longer always returns a `AstroCookie` object. Instead it now returns `undefined` if the cookie does not exist.
8
+
9
+
You should update your code if you assume that all calls to `get()` return a value. When using with `has()` you still need to assert the value, like so:
0 commit comments