You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/server-sessions.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ This pattern keeps the delegation scoped (resources and expiration are enforced
12
12
# Workflow
13
13
14
14
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.
17
17
4.**Server restores an auth context** using `authManager.createPkpAuthContextFromPreGenerated`.
18
18
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`.
0 commit comments