Open
Description
When clicking 'Sign Out', the user's cookie should be deleted, logging them out. However, event.url.searchParams
is not updated when using goto()
-- it remains an empty object. The URL in the address bar is updated to append ?signout=true
, but the cookie remains, and the user can continue to navigate all pages of the site.
NOTE: if the page is refreshed after 'Sign Out', hooks sees the search parameter in the current URL, and event.cookies.delete()
runs as expected.
I've tried replacing await goto(`/?signout=${status}`);
with throw redirect(303, `/?signout=${status}`);
, but that did not resolve the issue.
I also tried to converting handleSignOut()
to a synchronous function.
Metadata
Metadata
Assignees
Labels
No labels