agntcy-dir 1.2.1 → 1.4.0

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.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Directory JavaScript SDK
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/agntcy-dir.svg)](https://www.npmjs.com/package/agntcy-dir)
4
+
3
5
  ## Overview
4
6
 
5
7
  Dir JavaScript SDK provides a simple way to interact with the Directory API.
@@ -140,7 +142,7 @@ const client = new Client();
140
142
  await client.authenticateOAuthPkce();
141
143
  ```
142
144
 
143
- For custom transports, call `Client.createGRPCTransport(oidcConfig, { oidcTokenHolder })` with an `OAuthTokenHolder` (exported from this package). The usual path is `new Client(oidcConfig)`, which wires the holder and transport automatically.
145
+ For custom transports, call `Client.createGRPCTransport(oidcConfig, { oidcTokenHolder: client.oauthSession.oauthHolder })` after constructing a `Client` in OIDC mode, or pass a holder from your own OIDC flow. The usual path is `new Client(oidcConfig)`, which wires the session and transport automatically.
144
146
 
145
147
  ## Getting Started
146
148