/** * Per-product configuration injected into `createAuthClient`. Lifting the * sign-in glue out of playground-cli (issue #411) means the env-specific * constants playground hard-coded in its `config.ts` (DAPP_ID, product id, * metadata URL, People-chain endpoints) become consumer-supplied so the same * package serves `playground` and `dot` (and future products) unchanged. */ interface AuthConfig { /** The dApp identity string. Scopes the on-disk session namespace * (`~/.polkadot-apps/${dappId}_*`) and the SSO pairing — each product * gets its own, independently-revocable session. */ dappId: string; /** RFC-0022 product id `${dappId}.`; the account is `//product//{productId}/{index}`. * Logout relies on this shape to clear `${dappId}.*` files. */ productId: string; /** Derivation index of the product account (0 = default). */ derivationIndex: number; /** Wallet-facing app name shown on the Sign-In screen (sent inline at pairing). */ hostName: string; /** Host app version sent inline at pairing. */ hostVersion: string; /** People-parachain RPC endpoints the terminal adapter connects to. */ peopleEndpoints: string[]; } export type { AuthConfig };