Skip to content

Commit e37a26b

Browse files
committed
fix(docs): update auth service API details and remove outdated SDK information
1 parent faf1d8b commit e37a26b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/sdk/getting-started/payment-manager-setup.mdx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,6 @@ const response = await litClient.decrypt({
162162
});
163163
```
164164

165-
Behind the scenes the SDK:
166-
167-
- Builds a pricing context during handshake (product, per-node prices, threshold).
168-
- Encrypts requests per node using the keyset.
169-
- Emits per-node max price in the session signature.
170-
- Lets the validators call `Ledger.chargeUser` against the delegated payer wallet.
171-
172165
## Auth Service API Endpoints
173166

174167
Leverage the hosted Auth Service to manage delegation without exposing private keys in your application. Full request/response details live in the [Auth Services setup guide](/sdk/getting-started/auth-services#payment-delegation-apis). In practice you will:
@@ -186,8 +179,8 @@ import { nagaTest } from '@lit-protocol/networks';
186179
// 1. Create the Lit client for the naga-test environment
187180
const litClient = await createLitClient({ network: nagaTest });
188181

189-
const authServiceBaseUrl = 'https://naga-test-auth-service.example.com';
190-
const apiKey = process.env.LIT_API_KEY!;
182+
const authServiceBaseUrl = 'https://naga-test-auth-service.getlit.dev/';
183+
const apiKey = process.env.YOUR_AUTH_SERVICE_API_KEY!;
191184

192185
// 3. Register a payer wallet (store the secret securely server-side)
193186
const registerResponse = await litClient.authService.registerPayer({

0 commit comments

Comments
 (0)