Skip to main content

peek-embed-and-auth

The concrete Peek Pro embed + auth wiring — how a starter-kit app embeds inside the Peek Pro iframe and authenticates every request with a peek-auth JWT. Use when adding or changing an authenticated API route, a client-side data fetch, the token handshake, the install/embed entry route, CSP/iframe headers, or when debugging 401s, a blank iframe, or "token"/postMessage problems. Covers the POST → redirect → SPA → postMessage-token → Bearer-API pipeline, the exact PeekAuthTokenClaims shape, createPeekService vs createPeekServiceForInstall for server-to-Peek without a user token, and the file map that owns each piece. Triggers on "add an API route", "authenticate a request", "peek-auth token", "iframe won't load", "401 in the embed", "postMessage token", "call Peek without a user token", "createPeekServiceForInstall", "cron/background Peek", "withAppAuthentication", "withPeekAuthentication".

Jump to install

Source facts

Repository
peek-travel/app-cli
Last source activity
August 20, 2026 at 01:29
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.