personal web client for Bluesky
typescript solidjs bluesky atcute

fix: try setting keepalive to false

mary.my.id 8c4a5f53 d00bec69

verified
Changed files
+8 -2
src
lib
states
views
+3 -1
src/lib/states/session.tsx
··· 172 172 const expiresAt = session.token.expires_at; 173 173 174 174 agent = new OAuthUserAgent(session); 175 - handler = agent; 175 + handler = (pathname, init) => { 176 + return agent!.handle(pathname, { ...init, keepalive: false }); 177 + }; 176 178 177 179 if (expiresAt !== undefined && expiresAt - Date.now() <= 5 * 60 * 1000) { 178 180 agent.getSession({ noCache: true });
+5 -1
src/views/oauth-callback.tsx
··· 27 27 const did = session.info.sub; 28 28 29 29 const agent = new OAuthUserAgent(session); 30 - const client = new Client({ handler: agent }); 30 + const client = new Client({ 31 + handler(pathname, init) { 32 + return agent!.handle(pathname, { ...init, keepalive: false }); 33 + }, 34 + }); 31 35 32 36 const profile = await ok( 33 37 client.get('app.bsky.actor.getProfile', {