sfnext-authentication
Installation
SKILL.md
Authentication Skill
This skill covers Storefront Next's split-cookie authentication architecture with SLAS (Shopper Login and API Access Service).
Overview
Storefront Next uses a split-cookie architecture separating server and client auth concerns:
- Server middleware (
auth.server.ts) — Manages SLAS tokens, writes cookies, handles token refresh - React Context (
AuthProvider) — Provides public session data (non-sensitive fields) to components viauseAuth()