<sessions-account-card>The card your home page on Sessions shows a signed-in buyer, for your own site: who they are with you, their next booking (with the seats or tickets they hold) and a way to book more, the pass or membership they’d use next with what’s left on it, and the challenge they’re in or their next attendance milestone. Each part has an invitation of the same size when there’s nothing to show, so the card keeps its height. It fills its container’s width and lays itself out by it: three short rows when narrow, one strip when wide. It renders nothing while the viewer is signed out — pair it with <sessions-account-menu>. Links to Sessions open in a new tab.
Install
<script type="module" src="https://assets.sessions.website/embeds/unstable/account-card.js"></script>
<sessions-account-card></sessions-account-card>Attributes
Edit any attribute below — the snippet above and the live preview to the side rebuild in place.
business : stringHandle of the business whose site this is, without the leading @. Optional when a wrapping <sessions-context business="…"> already provides it.
auth : tokenOptional embed-scoped JWT. Usually inherited from <sessions-context>, which keeps it after the viewer signs in.
schedule-url : stringYour own page for booking, if you have one (for example a page with <sessions-schedule>). “Book more” and “Find a time” open it — in place when it’s on this site; without it they open your schedule on Sessions in a new tab.
products-url : stringYour own page for buying passes and memberships, if you have one. The invitation to get one opens it — in place when it’s on this site; without it, your products on Sessions open in a new tab.
Content Security Policy
If your site sets a Content-Security-Policy, allow these origins: the embed loads its files from assets.sessions.website, calls the Sessions API on go.sessions.website, and frames sign-in and maps from embed.sessions.website.
script-src https://assets.sessions.website;
connect-src https://assets.sessions.website https://go.sessions.website;
frame-src https://embed.sessions.website;