Skip to main content

peek-embed-and-auth

How this starter kit embeds inside the Peek Pro iframe and authenticates every request. 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. Explains the POST → redirect → SPA → postMessage-token → Bearer-API pipeline and the constraints that force it (no cookies, no SSR data fetching, library-owned verification). Also covers calling Peek server-side WITHOUT a user token — install-scoped from a persisted installId — for public pages, webhooks, cron, and background reconciliation. Triggers on "add an API route", "authenticate a request", "peek-auth token", "iframe won't load", "401 in the embed", "postMessage token", "call Peek from a public page", "call Peek without a user token", "createPeekServiceForInstall", "cron/background Peek".

Ir a la instalación

Datos de origen

Repositorio
peek-travel/nextjs-starter-kit
Última actividad en el origen
10 de julio de 2026 a las 00:31
Idioma detectado de SKILL.md
inglés
Estrellas
0
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.