simple atproto oauth for static svelte apps flo-bit.dev/svelte-atproto-client-oauth/
6
fork

Configure Feed

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

dont allow stale sessions

Florian 487b6132 8cd8b90e

+1 -1
+1 -1
src/lib/atproto/auth.svelte.ts
··· 187 187 188 188 async function resumeSession(did: Did) { 189 189 try { 190 - const session = await getSession(did, { allowStale: true }); 190 + const session = await getSession(did); 191 191 192 192 if (session.token.expires_at && session.token.expires_at < Date.now()) { 193 193 throw Error('session expired, signing out!');