replies timeline only, appview-less bluesky client

refactor: remove unused identifier argument from client login

ptr.pet 1288cb98 1731f8cd

verified
Changed files
+3 -3
src
+1 -1
src/lib/at/client.ts
···
public atcute: AtcuteClient | null = null;
public user: { did: Did; handle: Handle } | null = null;
-
async login(identifier: ActorIdentifier, agent: OAuthUserAgent): Promise<Result<null, string>> {
+
async login(agent: OAuthUserAgent): Promise<Result<null, string>> {
try {
const rpc = new AtcuteClient({ handler: agent });
const res = await rpc.get('com.atproto.server.getSession');
+1 -1
src/routes/+page.svelte
···
const loginAccount = async (account: Account) => {
if (clients.has(account.did)) return;
const client = new AtpClient();
-
const result = await client.login(account.did, await sessions.get(account.did));
+
const result = await client.login(await sessions.get(account.did));
if (!result.ok) {
errors.push(`failed to login into @${account.handle ?? account.did}: ${result.error}`);
return;
+1 -1
src/routes/+page.ts
···
}
const client = new AtpClient();
-
const result = await client.login(account.did, agent.value);
+
const result = await client.login(agent.value);
if (!result.ok) return err(result.error);
addAccount(account);