
The kyi scope, opened from a partner page.
Before you start
- Credentials. Send your Bluprynt representative every origin that will embed the widget, including staging and local development (for example
https://app.example.comandhttp://localhost:3000). You get back a partner ID and aSECRET_KEY. Store them asKYI_PARTNER_IDandKYI_SECRET_KEYon your server. - Runtime.
generateToken()needs Node.js 18 or later. For other languages, see Access tokens. - Signed-in members. The token endpoint needs to know who’s asking, so it sits behind your own authentication.
1
Mint a token on your server
server.ts
2
Open the widget
Mint a fresh token every time you open the widget. The drawer slides in from the right, and it closes on the close button, a click outside it, or
Escape.app.ts
3
Pick a scope
Check it works
- Sign in to your app on an allowlisted origin and click your button.
- The drawer opens and shows Start here — two steps to your first verified asset.
onReadylogsWidget loaded. - Close it.
onClosefires and the next click opens a new drawer.
Next
Verification flow
Every screen, step by step.
Access tokens
Next.js, Flask and FastAPI endpoints.
Security
The checklist before going live.
Example: Claim this profile
A complete Next.js integration.