tangled
alpha
login
or
join now
retr0.id
/
pdsls
forked from
pds.ls/pdsls
1
fork
atom
atproto explorer
1
fork
atom
overview
issues
pulls
pipelines
remove expired sessions
handle.invalid
5 months ago
23c38348
19822f39
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+8
-2
1 changed file
expand all
collapse all
unified
split
src
components
account.tsx
+8
-2
src/components/account.tsx
···
30
30
});
31
31
});
32
32
sessionDids.forEach(async (did) => {
33
33
-
const avatar = await getAvatar(did);
34
34
-
if (avatar) setAvatars(did, avatar);
33
33
+
try {
34
34
+
await getSession(did, { allowStale: true });
35
35
+
const avatar = await getAvatar(did);
36
36
+
if (avatar) setAvatars(did, avatar);
37
37
+
} catch {
38
38
+
deleteStoredSession(did);
39
39
+
setSessions(did, undefined);
40
40
+
}
35
41
});
36
42
}
37
43
});