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 via useAuth()

Cookie Design

Installs
4
GitHub Stars
45
First Seen
Jun 17, 2026
sfnext-authentication — salesforcecommercecloud/b2c-developer-tooling