@partylayer/adapter-bron
v0.6.1
Published
Bron Wallet adapter for PartyLayer
Readme
@partylayer/adapter-bron
Default application integration: The React kit already includes this compatibility runtime where applicable. Install
@partylayer/react @tanstack/react-queryin one command and usePartyLayerKitwithConnectButton; no per-wallet package installation is required. See the quick start. The instructions below are for explicitly using this standalone compatibility package. Native provider paths and limits are recorded in the integration matrix.
Legacy integration. This package predates the generic bridge and is kept for compatibility; a new wallet should not copy this pattern. New wallets integrate through Path A or Path B with no PartyLayer-specific code, see https://partylayer.xyz/docs/generic-bridge.
Bron Wallet adapter for PartyLayer
Overview
Adapter for the Bron Wallet, an enterprise remote signer using OAuth2 authentication and API-based signing.
Note: This adapter is included in
@partylayer/sdkby default. You only need to install it separately if building a custom setup.
Installation
npm install @partylayer/adapter-bronUsage with SDK
import { createPartyLayer, type BronAdapterConfig } from '@partylayer/sdk';
// Supply the OAuth endpoints, public client ID, registered redirect URI and
// signer API URL issued for your application by Bron.
export function createBronClient(bron: BronAdapterConfig) {
return createPartyLayer({
network: 'devnet',
app: { name: 'My Canton dApp' },
bron,
});
}Bron requires application-owned OAuth and signer API configuration. Without
bron configuration, Bron is omitted from the wallet picker. After constructing
the client with your approved configuration, find Bron in await client.listWallets()
and pass that entry's walletId to client.connect() from a user action in the browser.
Use PKCE for browser flows and never expose a client secret in frontend code. Register the callback URL with Bron and follow their onboarding instructions; this package does not provision a Bron account or credentials.
Links
License
MIT
