appview-less bluesky client
27
fork

Configure Feed

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

refactor: remove unused identifier argument from client login

dusk 1288cb98 1731f8cd

+3 -3
+1 -1
src/lib/at/client.ts
··· 73 73 public atcute: AtcuteClient | null = null; 74 74 public user: { did: Did; handle: Handle } | null = null; 75 75 76 - async login(identifier: ActorIdentifier, agent: OAuthUserAgent): Promise<Result<null, string>> { 76 + async login(agent: OAuthUserAgent): Promise<Result<null, string>> { 77 77 try { 78 78 const rpc = new AtcuteClient({ handler: agent }); 79 79 const res = await rpc.get('com.atproto.server.getSession');
+1 -1
src/routes/+page.svelte
··· 41 41 const loginAccount = async (account: Account) => { 42 42 if (clients.has(account.did)) return; 43 43 const client = new AtpClient(); 44 - const result = await client.login(account.did, await sessions.get(account.did)); 44 + const result = await client.login(await sessions.get(account.did)); 45 45 if (!result.ok) { 46 46 errors.push(`failed to login into @${account.handle ?? account.did}: ${result.error}`); 47 47 return;
+1 -1
src/routes/+page.ts
··· 37 37 } 38 38 39 39 const client = new AtpClient(); 40 - const result = await client.login(account.did, agent.value); 40 + const result = await client.login(agent.value); 41 41 if (!result.ok) return err(result.error); 42 42 43 43 addAccount(account);