b2c-slas-auth-patterns

b2c-slas-auth-patterns is a skill for Claude Code, Codex from SalesforceCommerceCloud/b2c-developer-tooling. It costs 135 tokens per session (3,559 once invoked), scanned A, original, Apache-2.0.

A guide to authentication with Salesforce B2C Commerce’s Shopper Login and API Access Service (SLAS). It covers passwordless sign-in and connections between different storefront systems.

In plain words
What is it for?
Use it to implement email or SMS one-time codes, passkeys, session bridging between PWA Kit, Storefront Next, and SFRA, hybrid authentication, system-to-system access, and JWT validation.
Why use it?
It helps solve the complexity of sharing login sessions, refreshing access tokens, and validating identity tokens across storefronts and connected services.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/salesforcecommercecloud/b2c-developer-tooling/b2c-slas-auth-patterns
Any agent
npx skills add SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-slas-auth-patterns
Clone the repo
git clone --depth 1 https://github.com/SalesforceCommerceCloud/b2c-developer-tooling

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for b2c-slas-auth-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-slas-auth-patterns.svg)](https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-slas-auth-patterns)
Your own site
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-slas-auth-patterns"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-slas-auth-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00135 $0.03559
Opus 5 $0.00068 $0.01780
Sonnet 5 $0.00027 $0.00712
Haiku 4.5 $0.00014 $0.00356

Measured 4d ago against content hash 21b7df8c751c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

b2c-slas-auth-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b2c/skills/b2c-slas-auth-patterns/SKILL.md · 421 lines

How it starts

The opening of the file, as written. The whole thing — 421 lines — stays where its author put it; the contents beside it link to each section on GitHub.

B2C SLAS Authentication Patterns

Advanced authentication patterns for SLAS (Shopper Login and API Access Service) beyond basic login. These patterns enable passwordless authentication, hybrid storefront support, and system-to-system integration.

Scope & grounding

This skill covers SLAS authentication patterns including passwordless login (email OTP, SMS, passkeys), session bridging, hybrid authentication (B2C 25.3+), token management, TSOB, and JWT validation with framework-specific examples for PWA Kit, Storefront Next, and SFRA. Code examples are illustrative of typical flows. Before answering version-specific questions, framework-specific implementations, or providing code the user will run in production, confirm current API contracts, parameters, rate limits, and version requirements against the official documentation via b2c docs search and b2c docs read. The canonical docs are the authoritative source for B2C platform specifics, API shapes, and configuration requirements.

Canonical docs

  • commerce-api/slas - SLAS overview
  • commerce-api/slas-best-practices - Security and implementation best practices
  • commerce-api/slas-passwordless-login-overview - Passwordless authentication overview
  • commerce-api/slas-passwordless-login-email - Email OTP implementation
  • commerce-api/slas-passwordless-login-passkey - Passkey/WebAuthn implementation
  • commerce-api/slas-passwordless-sms - SMS OTP implementation
  • commerce-api/slas-session-bridge-overview - Session bridge overview
  • commerce-api/slas-session-bridge-auth - Session bridge implementation
  • commerce-api/hybrid-authentication - Hybrid authentication (B2C 25.3+)
  • commerce-api/hybrid-auth-pwa-kit-v2 - PWA Kit v2 hybrid auth
  • pwa-kit-managed-runtime/hybrid-auth - PWA Kit managed runtime hybrid auth
  • pwa-kit-managed-runtime/plugin-slas-setup - Plugin SLAS setup
  • commerce-api/slas-trusted-system - Trusted system on behalf (TSOB)
  • commerce-api/slas-public-client - Public client configuration
  • commerce-api/slas-private-client - Private client configuration
  • commerce-api/slas-validate-jwt-with-jwks - JWT validation

Read the full file on GitHub · 421 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 421 lines · 135 tokens per session scan A 21b7df8c751c

Subscribe to this mod's changes

b2c-slas-auth-patterns is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (53 stars, last pushed today), licensed Apache-2.0. It adds 135 tokens to every session and 3,559 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

list-segment-builder

Use when the user asks to "build email segments from my list", "make engaged / lapsed / RFM segments", "set up cart-abandoner or lifecycle-stage audiences", or "build a suppression list of unsubscribes and bounces"; turns the user's OWN list/CRM/GA4/ecommerce export into behavioral, attribute, and lifecycle-stage…

aaron-he-zhu/aaron-marketing-skills · 157 tokens

dynamic-pricing-ecommerce

Design a controlled dynamic-pricing or repricing system for ecommerce products. Use when a seller asks for demand-based, inventory-based, competitor-responsive, or time-based price rules; SKU eligibility; price floors and ceilings; automation approvals; simulations; monitoring; or rollback plans across Amazon…

nexscope-ai/eCommerce-Skills · 96 tokens

ecommerce-personalization

Design personalization strategies for e-commerce stores. Product recommendations, dynamic content, customer segmentation, and personalized email/SMS based on browsing and purchase behavior.

nexscope-ai/eCommerce-Skills · 35 tokens

ecommerce-customer-retention

Increase customer retention and repeat purchases for e-commerce businesses. Email flows, loyalty programs, subscription models, customer segmentation, and win-back strategies.

nexscope-ai/eCommerce-Skills · 0 tokens

mall4j

Mall4j 开源版现有功能副驾驶:本地启动、mall4v/mall4m/mall4uni、商品/SKU、购物车、下单支付、订单发货、会员、运费、权限、部署排查。适用于下载 mall4j / yami-shop 后按现有功能使用或二次开发;不要编造开源版没有的能力。.

gz-yami/mall4j · 89 tokens

openakita/skills@baidu-ecommerce

Baidu E-commerce skill for cross-platform price comparison, review analysis, and purchase knowledge. Complete workflow from product discovery to purchase decision. Use when user wants to compare prices, read reviews, or make purchase decisions.

openakita/openakita · 53 tokens