SessionIdentityOptions
Defined in: src/client/session-identity.ts:190
Properties
Section titled “Properties”accountKey
Section titled “accountKey”accountKey:
DerEncodedPublicKey
Defined in: src/client/session-identity.ts:192
The account’s key, which every app delegation is rooted at.
onSessionGone
Section titled “onSessionGone”onSessionGone: () =>
void
Defined in: src/client/session-identity.ts:224
Called once when the session turns out to be gone, so the client can drop what it holds and tell its subscribers. Ending a session is the client’s to do; this only reports it.
Returns
Section titled “Returns”void
sessionExpiresAtMs
Section titled “sessionExpiresAtMs”sessionExpiresAtMs:
number
Defined in: src/client/session-identity.ts:195
When the session itself ends. Nothing is minted past this.
slot:
string
Defined in: src/client/session-identity.ts:217
The slot the app credential lives under, and the name of the lock that serialises minting into it.
Taken rather than assumed, because the client assigns every name from one namespace: reaching for the bare constant here would read and write a slot the client never promotes into, so a namespaced client would mint again on every load and its sign-out would clear a slot nothing was using.
source
Section titled “source”source:
AppDelegationSource
Defined in: src/client/session-identity.ts:197
storage
Section titled “storage”storage:
CredentialStorage
Defined in: src/client/session-identity.ts:206
Where the app credential is kept, and what makes the key a mint gets a delegation for.
The store is what every tab of the origin reads, so a delegation minted in one is the delegation the others use.