@partylayer/adapter-bron 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,12 +42,28 @@ npm install @partylayer/adapter-bron
42
42
  ## Usage with SDK
43
43
 
44
44
  ```typescript
45
- import { createPartyLayer } from '@partylayer/sdk';
46
-
47
- const client = createPartyLayer({ network: 'devnet' });
48
- await client.connect({ walletId: 'bron' });
45
+ import { createPartyLayer, type BronAdapterConfig } from '@partylayer/sdk';
46
+
47
+ // Supply the OAuth endpoints, public client ID, registered redirect URI and
48
+ // signer API URL issued for your application by Bron.
49
+ export function createBronClient(bron: BronAdapterConfig) {
50
+ return createPartyLayer({
51
+ network: 'devnet',
52
+ app: { name: 'My Canton dApp' },
53
+ bron,
54
+ });
55
+ }
49
56
  ```
50
57
 
58
+ Bron requires application-owned OAuth and signer API configuration. Without
59
+ `bron` configuration, Bron is omitted from the wallet picker. After constructing
60
+ the client with your approved configuration, find Bron in `await client.listWallets()`
61
+ and pass that entry's `walletId` to `client.connect()` from a user action in the browser.
62
+
63
+ Use PKCE for browser flows and never expose a client secret in frontend code.
64
+ Register the callback URL with Bron and follow their onboarding instructions;
65
+ this package does not provision a Bron account or credentials.
66
+
51
67
  ---
52
68
 
53
69
  ## Links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partylayer/adapter-bron",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "sideEffects": false,
5
5
  "description": "Bron Wallet adapter for PartyLayer",
6
6
  "main": "./dist/index.js",