Unfollow tool for Bluesky

fix revoking, maybe

Changed files
+2 -4
src
+2 -4
src/App.tsx
···
let appAgent: Agent;
let userHandle: string;
-
const result: undefined | { agent: OAuthSession; state?: string } = await client
-
.init()
-
.catch(() => {});
+
const result: undefined | OAuthSession = await client.init().catch(() => {});
if (result) {
const init = await client.init();
···
};
const logoutBsky = async () => {
-
if (result) await client.revoke(result.agent.sub);
+
if (result) await client.revoke(result.sub);
};
const Follows: Component = () => {