sfnext-authentication
Work with Storefront Next's server-only authentication and session architecture (SLAS guest/registered tokens, httpOnly cookies, auth.server.ts middleware). Use for getAuth, useAuth, updateAuth, destroyAuth, protecting account routes, login/logout actions, guest-to-registered basket/wishlist merge, "session expired" redirects, 401 recovery loops, cc-at/cc-nx/usid/dwsid cookies, cookie names or expiry, passwordless login, social login, OTP email verification, passkeys, guest order lookup, or refresh-token lifetime settings. Do not use for Turnstile, CSP headers or cookie-domain config (use storefront-next:sfnext-security), calling SCAPI clients (use storefront-next:sfnext-scapi), or sharing sessions with SFRA (use storefront-next:sfnext-hybrid-storefronts).
Pinned to revision fe78868e0e70, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/sfnext-authentication/SKILL.md
- skills/sfnext-authentication/evals/trigger-evals.json
- skills/sfnext-authentication/references/COOKIES.md
- skills/sfnext-authentication/references/LOGIN-FLOWS.md
Every link opens the file at its source, pinned to the revision this page describes.