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".

跳到安装

来源信息

仓库
peek-travel/nextjs-starter-kit
最近来源活动
2026年7月10日 00:31
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。