The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.
@phosra/connect is the parent-facing connect surface — a calm, branded, in-app modal that
never navigates away, shows exactly which child and which rules are being granted, and ends on
an explicit success. It is the Plaid Link of OCSS: the same recognizable surface everywhere,
which is the trust mechanism.The component is presentation + state machine only. Every network call goes through a
ConnectTransportyou implement on your own backend — the parent never sees a secret,
token, or signature, and your provider key never reaches the browser.
npm install @phosra/connect
Import
Use
@phosra/connect
Web (React) — PhosraConnect, ConnectFlow, useConnect
@phosra/connect/native
React Native — same components
@phosra/connect/core
Shared types + the headless useConnect controller
The transport contract
The component calls your backend through a ConnectTransport. Three calls are required; the
fourth (provision) is optional and unlocks in-modal create-and-link. Each maps 1:1 to a
createLink connect leg on your BFF.
verified drives the trust cue — never fake it. Success shows
“Verified on the OCSS Trust List” only when verified === true (your BFF confirmed the
census signed-receipt actually verified to root). Otherwise the modal shows
<Platform> connected — confirming enforcement… (where <Platform> is the platform name).
Return verified honestly; a green badge with no verified receipt is the one thing the
branding rule forbids.
provisioningForm is server-advertised. If complete returns
provisioningForm: "batch", that overrides the component prop — the platform told the census
it accepts batch provisioning, and the modal offers the create-and-link step. Your bind /
provision handlers deliver signed to the OCSS root; there is no connect secret anywhere in
this flow.
The two entity icons remain independent. Phosra Link derives each standardized
tile from that entity’s approved Mark and composes provider → Phosra → platform
at render time; it does not create a combined image or require a separate app-icon upload.The parent sees three earned trust cues rendered as calm badges — “Accredited on the OCSS
Trust List” (intro), the concrete rules preview (the real rules you pass), and
Verified on <Platform> (only when bind returned verified === true). No secret, no
token, no signature is ever surfaced.
Props
Prop
Type
Notes
platform
{ did, name }
Target platform. did gates against the Trust List; name co-brands the modal.
rules
{ category, label }[]
The concrete grant preview — the exact rules the parent is consenting to.
grantedScope
string[]
The rule categories bound in the grant (drives bind).
childId
string
The OCSS child ref (child:<uuid>).
ageHint
AgeHint
"under_13" | "13_15" | "16_17".
childName
string(opt)
Names the child in the preview and success copy.
provisioningForm
"batch" | "single"(opt)
Enables create-and-link; a server-advertised provisioningForm from complete overrides it.
provisionChildren
ProvisionChild[](opt)
Ages/names to create when there are no existing profiles.
redirectUri
string
Your OAuth callback.
transport
ConnectTransport
Your BFF calls.
onSuccess
(r: BindResult) => void
{ grant_id, verified?, receiptFingerprint? }.
onExit
() => void
Parent dismissed the modal.
ConnectFlow takes the identical props if you want the flow inline rather than in a modal
shell. React Native is the same API from @phosra/connect/native.
Create-and-link in the modal
When there are no existing profiles on the platform and you pass a provisioningForm
plus a transport.provision, the modal shows a no_profiles step with a “Create &
connect” button. The parent creates the banded child profiles and binds them in one contained
step — no new tab, no dead-end.
Under the hood the modal advances through two new statuses: no_profiles (the create step is
offered) and creating (the signed provision delivery is in flight). Your transport.provision
returns { grant_id, verified, provisioned } — provisioned is the count created.
Headless: useConnect
For a fully custom UI, drive the state machine directly with useConnect and render your own
chrome (branding still required — see below).
createProfiles() is valid only while status === "no_profiles"; it runs the signed
transport.provision and advances the machine.
Branding is mandatory
The drop-ins render the Phosra Link branding — the phosra · OCSS lockup, the
“Accredited / Verified on the OCSS Trust List” trust signals, and the never-a-fake-green
honesty rule (the verified badge only ever appears when the census receipt actually verified).
This is required, not optional: any Phosra Link connect/consent surface MUST use the
published kit, a provider may not hand-roll or restyle the branded consent, and the platform
auth leg MUST co-brand Phosra Link · <Platform>. Consistency is the trust mechanism, and it
is assessed at accreditation. See the
Phosra Link Branding Requirement.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Phosra Developer Docs","colors":{"primary":"#00D47E","light":"#00D47E","dark":"#00D47E"},"logo":{"light":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=8f3e00aeea5b1bf4afb0f9276ed39b99","dark":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo-white.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=ac97c56af67be154c77a22ad86318d12"},"favicon":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/favicon.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=f69a525b8c32baf18b6421339f76b37c","api":{"openapi":["openapi.yaml","openapi.control-plane.yaml","openapi.data-plane.yaml"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://prodapi.phosra.com/api/v1"}},"navbar":{"links":[{"href":"https://openchildsafety.com/status","label":"Status"},{"href":"https://dashboard.phosra.com/login","label":"Sign in"}],"primary":{"type":"button","label":"Get API keys","href":"https://dashboard.phosra.com/signup"}},"footer":{"socials":{"website":"https://phosra.com","github":"https://github.com/openchildsafety","linkedin":"https://www.linkedin.com/company/phosra"}},"search":{"prompt":"Search the Phosra API, guides, and the OCSS spec…"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"phosra","hasAudioNarration":false,"actualSubdomain":"phosra","customDomains":["docs.phosra.com"],"gitSource":{"type":"github","owner":"jakekklinvex","repo":"phosra","deployBranch":"main","contentDirectory":"docs/api","isPrivate":true,"mountPath":"","label":"","_id":"6b10bf499ffae5051c40458b"},"entitlements":{},"buildId":"6a99df2cd25de1dbb9062aae","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"Documentation","count":269},{"language":"default","tag":"API Reference","count":97},{"language":"default","tag":"Data Plane","count":71},{"language":"default","tag":"Control Plane","count":24},{"language":"default","tag":"SDKs","count":24},{"language":"default","tag":"Partner Integration","count":14},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Concepts","count":11},{"language":"default","tag":"OCSS Data-Plane","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--phosra-green: #00D47E;--phosra-green-ink: #047857;--phosra-green-ink-strong: #036546;--phosra-ink: #0B1215;--phosra-code-bg: #0d1117;--phosra-code-chip-bg: #ecfdf4;--phosra-code-chip-ink: #036546;--phosra-code-chip-brd: #b8ecd4}.dark{--phosra-green-ink: #34e0a1;--phosra-code-chip-bg: rgba(0, 212, 126, 0.12);--phosra-code-chip-ink: #6ff0c0;--phosra-code-chip-brd: rgba(0, 212, 126, 0.28)}.prose .eyebrow,[class*=\"text-primary\"]{color:var(--phosra-green-ink)!important}.prose a{color:var(--phosra-green-ink);text-decoration:none;font-weight:500;border-bottom:1px solid transparent;transition:border-color 120ms ease}.prose a:hover{border-bottom-color:var(--phosra-green-ink)}:not(pre)>code{background:var(--phosra-code-chip-bg)!important;color:var(--phosra-code-chip-ink)!important;border:1px solid var(--phosra-code-chip-brd);border-radius:5px;padding:0.1em 0.38em;font-size:0.86em;font-weight:500;white-space:nowrap;word-break:keep-all}:not(pre)>code:is([data-long],.long){white-space:normal;word-break:break-word}:not(pre)>code::before,:not(pre)>code::after{content:none!important}.prose pre,pre[class*=\"language-\"]{border-radius:12px;border:1px solid rgba(0, 212, 126, 0.18);box-shadow:0 1px 2px rgba(11, 18, 21, 0.06),\n 0 8px 24px -12px rgba(11, 18, 21, 0.25)}.prose pre{position:relative}.prose pre::before{content:\"\";position:absolute;inset:0 0 auto 0;height:2px;border-radius:12px 12px 0 0;background:linear-gradient(90deg, var(--phosra-green) 0%, #0EA5E9 100%);opacity:0.55}a[class*=\"rounded\"][class*=\"bg-primary\"],button[class*=\"bg-primary\"]{border-radius:8px!important}#content-container .prose a[class*=\"card\"],.card:hover{transition:transform 120ms ease, box-shadow 120ms ease}"}]}
{"page":{"pagePath":"sdks/connect-component","slug":"/sdks/connect-component","pageMetadata":{"title":"@phosra/connect — PhosraConnect","description":"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.","keywords":["@phosra/connect","PhosraConnect","ConnectFlow","ConnectTransport","parent modal","provisioningForm","create and link"],"href":"/sdks/connect-component"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`@phosra/connect`}),` is the parent-facing connect surface — a calm, branded, in-app modal that\nnever navigates away, shows exactly which child and which rules are being granted, and ends on\nan explicit success. It is the Plaid Link of OCSS: the same recognizable surface everywhere,\nwhich is the trust mechanism.`]}),`\n`,_jsxs(_components.p,{children:[`The component is `,_jsx(_components.strong,{children:`presentation + state machine only`}),`. Every network call goes through a\n`,_jsx(_components.code,{children:`ConnectTransport`}),` `,_jsx(_components.strong,{children:`you`}),` implement on your own backend — the parent never sees a secret,\ntoken, or signature, and your provider key never reaches the browser.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @phosra/connect`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Import`}),_jsx(_components.th,{children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@phosra/connect`})}),_jsxs(_components.td,{children:[`Web (React) — `,_jsx(_components.code,{children:`PhosraConnect`}),`, `,_jsx(_components.code,{children:`ConnectFlow`}),`, `,_jsx(_components.code,{children:`useConnect`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@phosra/connect/native`})}),_jsx(_components.td,{children:`React Native — same components`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@phosra/connect/core`})}),_jsxs(_components.td,{children:[`Shared types + the headless `,_jsx(_components.code,{children:`useConnect`}),` controller`]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`the-transport-contract`,children:`The transport contract`}),`\n`,_jsxs(_components.p,{children:[`The component calls your backend through a `,_jsx(_components.code,{children:`ConnectTransport`}),`. Three calls are required; the\nfourth (`,_jsx(_components.code,{children:`provision`}),`) is optional and unlocks in-modal create-and-link. Each maps 1:1 to a\n`,_jsxs(_components.a,{href:`/integration/link-provider#the-connect-flow`,children:[_jsx(_components.code,{children:`createLink`}),` connect leg`]}),` on your BFF.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConnectTransport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@phosra/connect/core\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConnectTransport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // → { authorizeUrl, state, sessionId } (wraps link.connect.start)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/phosra/connect/init\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) },`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // → { sessionId, childProfiles, provisioningForm? } (wraps link.connect.resume)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/phosra/connect/complete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) },`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // → { grant_id, verified?, receiptFingerprint? } (wraps link.connect.finish)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` bind`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/phosra/connect/bind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) },`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // OPTIONAL → { grant_id, verified, provisioned } (wraps link.provision)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` provision`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`){ `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/phosra/connect/provision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Transport call`}),_jsx(_components.th,{children:`Returns`}),_jsx(_components.th,{children:`BFF wraps`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`init`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ authorizeUrl, state, sessionId }`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`link.connect.start(...)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`complete`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ sessionId, childProfiles, provisioningForm? }`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`link.connect.resume(...)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bind`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ grant_id, verified?, receiptFingerprint? }`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`link.connect.finish(...)`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`provision`}),` `,_jsx(_components.em,{children:`(optional)`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ grant_id, verified, provisioned }`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`link.provision(...)`})})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`verified`}),` drives the trust cue — never fake it.`]}),` Success shows\n`,_jsx(_components.strong,{children:`“Verified on the OCSS Trust List”`}),` only when `,_jsx(_components.code,{children:`verified === true`}),` (your BFF confirmed the\ncensus signed-receipt actually verified to root). Otherwise the modal shows\n`,_jsx(_components.code,{children:`\u003cPlatform> connected — confirming enforcement…`}),` (where `,_jsx(_components.code,{children:`\u003cPlatform>`}),` is the platform name).\nReturn `,_jsx(_components.code,{children:`verified`}),` honestly; a green badge with no verified receipt is the one thing the\nbranding rule forbids.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`provisioningForm`}),` is server-advertised.`]}),` If `,_jsx(_components.code,{children:`complete`}),` returns\n`,_jsx(_components.code,{children:`provisioningForm: \"batch\"`}),`, that overrides the component prop — the platform told the census\nit accepts batch provisioning, and the modal offers the create-and-link step. Your `,_jsx(_components.code,{children:`bind`}),` /\n`,_jsx(_components.code,{children:`provision`}),` handlers deliver `,_jsx(_components.strong,{children:`signed to the OCSS root`}),`; there is no connect secret anywhere in\nthis flow.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`web-quickstart`,children:`Web quickstart`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`33`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`33`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PhosraConnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@phosra/connect\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConnectTransport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@phosra/connect/core\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConnectTransport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bind`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`provision`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ConnectNotflix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`PhosraConnect`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` provider`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` did:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:custo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Custo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` linkIcon:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lightUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` custoMark`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`darkUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` custoMarkDark`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fallbackInitials:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"CU\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` did:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` linkIcon:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lightUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` notflixMark`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`darkUrl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` notflixMarkDark`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fallbackInitials:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"NO\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` rules`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`category:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dm_restriction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`label:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Restrict direct messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` grantedScope`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dm_restriction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` childId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child:a11ce0fa-...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ageHint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"13_15\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` childName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ava\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // names the child in the grant preview`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` redirectUri`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://custo.app/phosra/callback\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onSuccess`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // r.grant_id, r.verified, r.receiptFingerprint`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` router`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/family\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onExit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` router`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`back`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The two entity icons remain independent. Phosra Link derives each standardized\ntile from that entity’s approved Mark and composes provider → Phosra → platform\nat render time; it does not create a combined image or require a separate app-icon upload.`}),`\n`,_jsxs(_components.p,{children:[`The parent sees three earned trust cues rendered as calm badges — `,_jsx(_components.strong,{children:`“Accredited on the OCSS\nTrust List”`}),` (intro), the `,_jsx(_components.strong,{children:`concrete rules preview`}),` (the real `,_jsx(_components.code,{children:`rules`}),` you pass), and\n`,_jsx(_components.code,{children:`Verified on \u003cPlatform>`}),` (only when `,_jsx(_components.code,{children:`bind`}),` returned `,_jsx(_components.code,{children:`verified === true`}),`). No secret, no\ntoken, no signature is ever surfaced.`]}),`\n`,_jsx(Heading,{level:`3`,id:`props`,children:`Props`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Prop`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`platform`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ did, name }`})}),_jsxs(_components.td,{children:[`Target platform. `,_jsx(_components.code,{children:`did`}),` gates against the Trust List; `,_jsx(_components.code,{children:`name`}),` co-brands the modal.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rules`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ category, label }[]`})}),_jsx(_components.td,{children:`The concrete grant preview — the exact rules the parent is consenting to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`grantedScope`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string[]`})}),_jsxs(_components.td,{children:[`The rule categories bound in the grant (drives `,_jsx(_components.code,{children:`bind`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`childId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`The OCSS child ref (`,_jsx(_components.code,{children:`child:\u003cuuid>`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ageHint`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AgeHint`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"under_13\" | \"13_15\" | \"16_17\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`childName`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`(opt)`})]}),_jsx(_components.td,{children:`Names the child in the preview and success copy.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provisioningForm`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"batch\" | \"single\"`}),` `,_jsx(_components.em,{children:`(opt)`})]}),_jsxs(_components.td,{children:[`Enables create-and-link; a server-advertised `,_jsx(_components.code,{children:`provisioningForm`}),` from `,_jsx(_components.code,{children:`complete`}),` overrides it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provisionChildren`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ProvisionChild[]`}),` `,_jsx(_components.em,{children:`(opt)`})]}),_jsx(_components.td,{children:`Ages/names to create when there are no existing profiles.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`redirectUri`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Your OAuth callback.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transport`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ConnectTransport`})}),_jsx(_components.td,{children:`Your BFF calls.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onSuccess`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(r: BindResult) => void`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ grant_id, verified?, receiptFingerprint? }`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onExit`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() => void`})}),_jsx(_components.td,{children:`Parent dismissed the modal.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ConnectFlow`}),` takes the identical props if you want the flow inline rather than in a modal\nshell. React Native is the same API from `,_jsx(_components.code,{children:`@phosra/connect/native`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`create-and-link-in-the-modal`,children:`Create-and-link in the modal`}),`\n`,_jsxs(_components.p,{children:[`When there are `,_jsx(_components.strong,{children:`no existing profiles`}),` on the platform and you pass a `,_jsx(_components.code,{children:`provisioningForm`}),`\nplus a `,_jsx(_components.code,{children:`transport.provision`}),`, the modal shows a `,_jsx(_components.code,{children:`no_profiles`}),` step with a `,_jsx(_components.strong,{children:`“Create \u0026\nconnect”`}),` button. The parent creates the banded child profiles and binds them in one contained\nstep — no new tab, no dead-end.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`PhosraConnect`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`did:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` rules`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`category:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content_rating\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`label:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Age-appropriate titles only\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` grantedScope`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content_rating\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` childId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child:a11ce0fa-...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ageHint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"under_13\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` childName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Leo\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` provisioningForm`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"batch\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // + transport.provision → in-modal create`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` provisionChildren`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ageHint:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"under_13\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Leo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` redirectUri`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://custo.app/phosra/callback\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onSuccess`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` router`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/family\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onExit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` router`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`back`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`/>`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Under the hood the modal advances through two new statuses: `,_jsx(_components.code,{children:`no_profiles`}),` (the create step is\noffered) and `,_jsx(_components.code,{children:`creating`}),` (the signed `,_jsx(_components.code,{children:`provision`}),` delivery is in flight). Your `,_jsx(_components.code,{children:`transport.provision`}),`\nreturns `,_jsx(_components.code,{children:`{ grant_id, verified, provisioned }`}),` — `,_jsx(_components.code,{children:`provisioned`}),` is the count created.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`headless-useconnect`,children:[`Headless: `,_jsx(_components.code,{children:`useConnect`})]}),`\n`,_jsxs(_components.p,{children:[`For a fully custom UI, drive the state machine directly with `,_jsx(_components.code,{children:`useConnect`}),` and render your own\nchrome (branding still required — see below).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useConnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@phosra/connect/core\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` CustomConnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useConnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platform:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`did:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Notflix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grantedScope:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dm_restriction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` childId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"child:a11ce0fa-...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ageHint:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"13_15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` provisioningForm:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"batch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` provisionChildren:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ageHint:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"13_15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Ava\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` redirectUri:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://custo.app/phosra/callback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` transport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // c.status: … | \"no_profiles\" | \"creating\" | …`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"no_profiles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createProfiles`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Create `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\u0026amp;`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` connect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // render per c.status; c.state carries provisioningForm and the child profiles`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`createProfiles()`}),` is valid `,_jsx(_components.strong,{children:`only`}),` while `,_jsx(_components.code,{children:`status === \"no_profiles\"`}),`; it runs the signed\n`,_jsx(_components.code,{children:`transport.provision`}),` and advances the machine.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`branding-is-mandatory`,children:`Branding is mandatory`}),`\n`,_jsxs(_components.p,{children:[`The drop-ins render the `,_jsx(_components.strong,{children:`Phosra Link branding`}),` — the `,_jsx(_components.code,{children:`phosra · OCSS`}),` lockup, the\n“Accredited / Verified on the OCSS Trust List” trust signals, and the `,_jsx(_components.strong,{children:`never-a-fake-green`}),`\nhonesty rule (the verified badge only ever appears when the census receipt actually verified).\nThis is `,_jsx(_components.strong,{children:`required, not optional`}),`: any Phosra Link connect/consent surface MUST use the\npublished kit, a provider may not hand-roll or restyle the branded consent, and the platform\nauth leg MUST co-brand `,_jsx(_components.code,{children:`Phosra Link · \u003cPlatform>`}),`. Consistency is the trust mechanism, and it\nis `,_jsx(_components.strong,{children:`assessed`}),` at accreditation. See the\n`,_jsx(_components.a,{href:`/sdks/branding`,children:`Phosra Link Branding Requirement`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`next`,children:`Next`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/integration/link-provider`,children:`Provider · createLink (writer-plane compatibility)`}),` — the BFF your transport wraps`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.a,{href:`/sdks/link#reference-bff`,children:[_jsx(_components.code,{children:`@phosra/link`}),` → Reference BFF`]}),` — a copy-pasteable BFF for the three legs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/sdks/link-ios`,children:`PhosraLinkKit (iOS)`}),` — the native equivalent`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sdks/branding`,children:`Phosra Link Branding Requirement`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"@phosra/connect — PhosraConnect","description":"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.","keywords":["@phosra/connect","PhosraConnect","ConnectFlow","ConnectTransport","parent modal","provisioningForm","create and link"],"href":"/sdks/connect-component"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The transport contract","slug":"the-transport-contract","depth":2,"children":[]},{"title":"Web quickstart","slug":"web-quickstart","depth":2,"children":[{"title":"Props","slug":"props","depth":3,"children":[]}]},{"title":"Create-and-link in the modal","slug":"create-and-link-in-the-modal","depth":2,"children":[]},{"title":"Headless: useConnect","slug":"headless-useconnect","depth":2,"children":[]},{"title":"Branding is mandatory","slug":"branding-is-mandatory","depth":2,"children":[]},{"title":"Next","slug":"next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"phosra","siteName":"Phosra Developer Docs","title":"@phosra/connect — PhosraConnect - Phosra Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-11T01:33:57.625Z","originalFileLocation":"sdks/connect-component.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"@phosra/connect — PhosraConnect - Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.phosra.com/sdks/connect-component\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://phosra.mintlify.site/_mintlify/api/og/v2?division=Phosra+Link+%28secret-free%29\u0026amp;title=%40phosra%2Fconnect+%E2%80%94+PhosraConnect\u0026amp;description=The+embeddable%2C+Plaid-grade+parent+modal.+Drop+PhosraConnect+into+your+web+or+React+Native+app%2C+wire+a+four-call+transport%2C+and+connect+a+child+in+one+contained\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=3da08b2749c18c17646b8ffcbc7d55f3b18ff013dfadcaaef37898e07f5d680f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"@phosra/connect — PhosraConnect - Phosra Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phosra.mintlify.site/_mintlify/api/og/v2?division=Phosra+Link+%28secret-free%29\u0026amp;title=%40phosra%2Fconnect+%E2%80%94+PhosraConnect\u0026amp;description=The+embeddable%2C+Plaid-grade+parent+modal.+Drop+PhosraConnect+into+your+web+or+React+Native+app%2C+wire+a+four-call+transport%2C+and+connect+a+child+in+one+contained\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=3da08b2749c18c17646b8ffcbc7d55f3b18ff013dfadcaaef37898e07f5d680f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00D47E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.phosra.com/sdks/connect-component\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdks/connect-component.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.phosra.com/#organization\",\"name\":\"Phosra Developer Docs\",\"url\":\"https://docs.phosra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=8f3e00aeea5b1bf4afb0f9276ed39b99\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.phosra.com#website\",\"name\":\"Phosra Developer Docs\",\"url\":\"https://docs.phosra.com\",\"publisher\":{\"@id\":\"https://docs.phosra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.phosra.com/sdks/connect-component#webpage\",\"url\":\"https://docs.phosra.com/sdks/connect-component\",\"name\":\"@phosra/connect — PhosraConnect\",\"description\":\"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\",\"dateModified\":\"2026-08-11T01:33:57.625Z\",\"isPartOf\":{\"@id\":\"https://docs.phosra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.phosra.com/sdks/connect-component#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.phosra.com/sdks/connect-component#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Phosra Link (secret-free)\",\"item\":\"https://docs.phosra.com/integration/platform-readiness\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"@phosra/connect — PhosraConnect\",\"item\":\"https://docs.phosra.com/sdks/connect-component\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.phosra.com/sdks/connect-component#article\",\"headline\":\"@phosra/connect — PhosraConnect\",\"name\":\"@phosra/connect — PhosraConnect\",\"description\":\"The embeddable, Plaid-grade parent modal. Drop PhosraConnect into your web or React Native app, wire a four-call transport, and connect a child in one contained flow that never leaves your origin.\",\"url\":\"https://docs.phosra.com/sdks/connect-component\",\"mainEntityOfPage\":{\"@id\":\"https://docs.phosra.com/sdks/connect-component#webpage\"},\"dateModified\":\"2026-08-11T01:33:57.625Z\",\"keywords\":\"@phosra/connect, PhosraConnect, ConnectFlow, ConnectTransport, parent modal, provisioningForm, create and link\",\"publisher\":{\"@id\":\"https://docs.phosra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.phosra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Phosra Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Phosra Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdks/connect-component.md","siteName":"Phosra Developer Docs","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"API playground","href":"/playground"},{"title":"Postman \u0026 Insomnia collection","href":"/tools/postman"},{"title":"Use these docs with AI","href":"/tools/ai-tools"},{"title":"Create your account \u0026 get keys","href":"/platform/create-account"},{"title":"Create an app — the one call","href":"/platform/create-app"},{"title":"Authentication","href":"/authentication"},{"title":"Errors","href":"/errors"},{"title":"Troubleshooting","href":"/troubleshooting"},{"title":"Developer FAQ","href":"/faq"},{"title":"Glossary","href":"/glossary"},{"title":"Support \u0026 getting help","href":"/support"}]},{"group":"Concepts","pages":[{"title":"Architecture","href":"/concepts/architecture"},{"title":"Environments \u0026 base URLs","href":"/concepts/environments"},{"title":"Core objects \u0026 data model","href":"/concepts/data-model"},{"title":"Security \u0026 data handling","href":"/concepts/data-handling"},{"title":"Platforms \u0026 Enforcement Modes","href":"/concepts/platforms"},{"title":"Enforcement","href":"/concepts/enforcement"},{"title":"Signing data-plane requests (RFC 9421)","href":"/concepts/signing-requests"},{"title":"Policies \u0026 Rules","href":"/concepts/policies-and-rules"},{"title":"Families","href":"/concepts/families"},{"title":"Children \u0026 Age Groups","href":"/concepts/children-and-age"},{"title":"Strictness Levels","href":"/concepts/strictness-levels"}]},{"group":"Guides","pages":[{"title":"Choose your integration path","href":"/guides/choose-integration-path"},{"title":"First-Time Setup","href":"/guides/first-time-setup"},{"title":"Developer console: mint a key \u0026 read a verdict","href":"/guides/developer-console"},{"title":"Connect a platform","href":"/guides/connect-a-platform"},{"title":"Set up a family \u0026 kids","href":"/guides/family-and-kids"},{"title":"Disconnect \u0026 reconnect","href":"/guides/disconnect-reconnect"},{"title":"Test in the sandbox","href":"/guides/test-in-sandbox"},{"title":"Sandbox test values","href":"/guides/sandbox-test-values"},{"title":"Device Sync","href":"/guides/device-sync"},{"title":"Mobile App Integration","href":"/guides/mobile-integration"},{"title":"Third-Party Integration","href":"/guides/third-party-integration"},{"title":"Webhooks","href":"/guides/webhook-events"},{"title":"Example apps \u0026 starters","href":"/guides/example-apps"}]},{"group":"Cookbook","pages":[{"title":"Cookbook","href":"/guides/recipes/overview"},{"title":"End-to-end walkthrough","href":"/guides/end-to-end-walkthrough"},{"title":"Onboard a multi-child household","href":"/guides/recipes/multi-child-household"},{"title":"Change a rule and enforce it","href":"/guides/recipes/policy-change-and-enforce"},{"title":"Back off and retry a 429","href":"/guides/recipes/backoff-retry-429"},{"title":"Rotate a compromised key","href":"/guides/recipes/rotate-compromised-key"},{"title":"Recover a disconnected platform","href":"/guides/recipes/recover-disconnected-platform"},{"title":"Reconcile family drift","href":"/guides/recipes/reconcile-family-drift"}]},{"group":"Partner Integration","pages":[{"title":"Developer Platform Overview","href":"/platform/overview"},{"title":"Partner Integration Overview","href":"/integration/overview"},{"title":"CLI Quickstart","href":"/integration/cli"},{"title":"Provider Quickstart","href":"/integration/provider"},{"title":"Platform Quickstart","href":"/integration/platform"},{"title":"Implement Phosra through Cloudflare","href":"/integration/cloudflare-platform-onboarding"},{"title":"Platform Registration","href":"/integration/platform-registration"},{"title":"Provider Discovery — the directory","href":"/integration/provider-discovery"},{"title":"Safe Content Monitoring","href":"/integration/content-monitoring"},{"title":"Server-Side Enclave Routing","href":"/integration/server-side-enclave-routing"},{"title":"Billing Model","href":"/integration/billing"},{"title":"Production Accreditation","href":"/integration/production-accreditation"},{"title":"Forward Compatibility","href":"/integration/forward-compatibility"},{"title":"Go-live checklist","href":"/integration/go-live-checklist"}]},{"group":"Phosra Link (secret-free)","pages":[{"title":"Readiness: GET /api/phosra/status","href":"/integration/platform-readiness"},{"title":"Migrating HMAC → Signed Connect Delivery","href":"/integration/link-migration"},{"title":"Migrating a hand-minted credential","description":"Why a credential minted separately from its Trust List entry can silently diverge, how to detect it with one call, how to fix it, and which existing platforms are exposed.","href":"/integration/credential-divergence"},{"title":"@phosra/connect — PhosraConnect","href":"/sdks/connect-component"},{"group":"Legacy lanes","pages":[{"title":"Provider · createLink (writer-plane compatibility)","description":"The writer-plane lane of @phosra/link: createLink({ census, writerSeed, writerKeyId, db }), the connect legs, create-and-link, and signed rule delivery. Not the starting point for a new parent application — begin at the Provider Quickstart.","href":"/integration/link-provider"},{"title":"Platform · createConnectReceiver (legacy connect receiver)","href":"/integration/link-platform"}]}]},{"group":"OCSS Conformance","pages":[{"title":"OCSS Overview","href":"/ocss/overview"},{"title":"OCSS Roles","href":"/ocss/roles"},{"title":"Getting on the Trust List","href":"/ocss/onboarding"},{"title":"OCSS Trust Framework","href":"/ocss/trust-framework"},{"title":"OCSS Rule Reference","href":"/ocss/rule-reference"},{"title":"Link Intent V2 and the roadmap Intent API","href":"/ocss/intent-api"},{"title":"OCSS Protocol SDK","href":"/ocss/protocol-sdk"},{"title":"Conformance Status","href":"/ocss/status"}]},{"group":"Platform","pages":[{"title":"Rate limits","href":"/rate-limits"},{"title":"Limits \u0026 quotas","href":"/limits"},{"title":"HTTP headers","href":"/headers"},{"title":"Pagination","href":"/pagination"},{"title":"Idempotency","href":"/idempotency"},{"title":"Versioning","href":"/versioning"},{"title":"Deprecation \u0026 Sunset Policy","href":"/deprecation"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]}]},{"anchor":"Status","icon":"signal","href":"https://openchildsafety.com/status"},{"anchor":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]},{"anchor":"Security","icon":"shield-check","href":"https://www.phosra.com/trust"},{"anchor":"Developers","icon":"envelope","href":"mailto:developers@phosra.com"}]},"basePath":"","title":"@phosra/connect — PhosraConnect - Phosra Developer Docs","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":[],"chunks":[]}