personal web client for Bluesky
typescript solidjs bluesky atcute

revert: fix: try setting keepalive to false

This reverts commit 8c4a5f5371b63e37fff9f14e9dc87e7e0269cebb.

mary.my.id cbba3669 8c4a5f53

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