maticzav/nookies

Cookie Not Being Destroyed

Closed this issue ยท 1 comments

Hi,

I have a function that on success destroys the cookies, the first cookie is being destroyed but not the second, I'm not sure what the issue could be?

if (status === "succeeded") {
				nookies.destroy(null, 'fabCart')
				nookies.destroy(null, 'paymentIntentId')
				setStripeCheckoutSuccess(true);
			}

This is on the client side.

If I set and remove the cookie with the { path: โ€˜/โ€˜, } option, it works.