a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: fmt

Mary 06c998bf 06ac79f9

+7 -8
+6 -6
packages/clients/password-session/README.md
··· 101 101 102 102 ## callbacks 103 103 104 - | callback | when | session state | 105 - | ----------------- | ------------------------------------------ | ----------------- | 106 - | `onUpdate` | login succeeds, tokens refresh successfully | active (updated) | 107 - | `onUpdateFailure` | token refresh fails transiently (network) | active (preserved)| 108 - | `onDelete` | logout succeeds, session invalidated | destroyed | 109 - | `onDeleteFailure` | logout fails transiently (network) | active (preserved)| 104 + | callback | when | session state | 105 + | ----------------- | ------------------------------------------- | ------------------ | 106 + | `onUpdate` | login succeeds, tokens refresh successfully | active (updated) | 107 + | `onUpdateFailure` | token refresh fails transiently (network) | active (preserved) | 108 + | `onDelete` | logout succeeds, session invalidated | destroyed | 109 + | `onDeleteFailure` | logout fails transiently (network) | active (preserved) | 110 110 111 111 all callbacks receive `this: PasswordSession` context and must not throw.
+1 -2
packages/clients/password-session/lib/password-session.ts
··· 344 344 } 345 345 346 346 // refresh unless another call already started one 347 - const refreshPromise = 348 - this.#sessionPromise === sessionPromise ? this.#refresh() : this.#sessionPromise; 347 + const refreshPromise = this.#sessionPromise === sessionPromise ? this.#refresh() : this.#sessionPromise; 349 348 350 349 const newSessionData = await refreshPromise.catch(() => null); 351 350