Logo

Session Lifecycle

How the 24-hour session cookie works and recommended partner behavior.

The Shop issues an httpOnly, secure, sameSite=none, partitioned cookie on successful handshake.

PropertyValue
Lifetime24 hours
Auto-refresh inside windowYes (API tokens refreshed transparently)
After expiryShop redirects to its own /sign-in — a dead-end for partner-embedded users

Always use a fresh URL

Open the Shop with a freshly generated handshake URL every time the user enters the Shop UI in your app. Do not cache the URL or rely on persisted sessions across app launches.

Roadmap

A shop.auth_expired event (postMessage for iframe, JS bridge for WebView) will let partner hosts re-handshake without user-visible disruption. No date committed.

On this page