Skip to content

Commit 5374f72

Browse files
committed
fix(docs): typo
1 parent a2fda68 commit 5374f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/server-sessions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ This pattern keeps the delegation scoped (resources and expiration are enforced
1212
# Workflow
1313

1414
1. **Client generates a session keypair** with `generateSessionKeyPair()`.
15-
2. **Client mints a delegation auth signature** with `authManager.generatePkpDelegationAuthSig`, scoping the allowed abilities and expiration.
16-
3. **Client sends the bundle** `{ sessionKeyPair, delegationAuthSig, pkpPublicKey }` to the server over a secure channel.
15+
2. **Client creates a delegation auth signature** with `authManager.generatePkpDelegationAuthSig`, scoping the allowed Lit resources and expiration.
16+
3. **Client sends the bundle** { sessionKeyPair, delegationAuthSig, pkpPublicKey }` to the server over a secure channel.
1717
4. **Server restores an auth context** using `authManager.createPkpAuthContextFromPreGenerated`.
1818
5. **Server issues fresh session signatures on demand** (e.g., `authManager.createPkpSessionSigs`) immediately before calling SDK helpers such as the wrapped-keys API or `pkpSign`.
1919

@@ -94,7 +94,7 @@ const authContext =
9494
delegationAuthSig: decodedPayload.delegationAuthSig,
9595
});
9696

97-
// ONly call this when the downstream API explicitly requires session sigs
97+
// Only call this when the downstream API explicitly requires session sigs
9898
const pkpSessionSigs = await serverAuthManager.createPkpSessionSigs({
9999
sessionKeyPair: decodedPayload.sessionKeyPair,
100100
pkpPublicKey: parsedEnvelope.pkpPublicKey,

0 commit comments

Comments
 (0)