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.

fix(oauth-browser-client): avoid unhandled session refresh rejection

Mary 157172a6 5ebe199e

+11 -3
+5
.changeset/quiet-session-rejection.md
··· 1 + --- 2 + '@atcute/oauth-browser-client': patch 3 + --- 4 + 5 + avoid unhandled rejections when session refresh fails
+6 -3
packages/oauth/browser-client/lib/agents/user-agent.ts
··· 26 26 const promise = getSession(this.session.info.sub, options); 27 27 28 28 promise 29 - .then((session) => { 30 - this.session = session; 31 - }) 29 + .then( 30 + (session) => { 31 + this.session = session; 32 + }, 33 + () => {}, 34 + ) 32 35 .finally(() => { 33 36 this.#getSessionPromise = undefined; 34 37 });