Sign-out secure with AuthKit and any JS framework. Confidently delete session cookies, invalidating WorkOS sessions, and even handle wierd prefetch request bugs.
Enhance your app's authentication flow with @chantastic!
LINKS:
One dose not simply delete cookies, @whitep4nth3r : https://whitep4nth3r.com/blog/cookies...
- @astrodotbuild prefetch documentation: https://docs.astro.build/en/guides/pr...
Disregarding prefetch requests in Astro endpoints, Perplexty AI: https://www.perplexity.ai/search/disa...
PR #1097 into the @WorkOS Node SDK to add getLogoutUrlFromSessionCookie helper method: https://github.com/workos/workos-node...
CHAPTERS
00:00 - Two steps to secure sign-out
00:22 - Create a sign-out endpoint
01:39 - Deleting the session cookie
02:18 - Deactivate the WorkOS session
03:15 - Adding a sign-out link to the dashboard
03:58 - Which framework is next?