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 +3 -1
- package/dist/agntcy-dir.d.ts +156 -696
- package/dist/index.cjs +973 -11811
- package/dist/index.mjs +957 -11792
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -17
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Directory JavaScript SDK
|
|
2
2
|
|
|
3
|
+
[](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 })`
|
|
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
|
|