mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-09-12 23:23:31 -06:00
async resumeSession
This commit is contained in:
@@ -27,12 +27,14 @@ export class BskyClient {
|
||||
});
|
||||
}
|
||||
|
||||
public static createAgentFromSession(session: AtpSessionData): BskyClient {
|
||||
public static async createAgentFromSession(
|
||||
session: AtpSessionData,
|
||||
): Promise<BskyClient> {
|
||||
if (clientCache.has(session.did)) {
|
||||
return clientCache.get(session.did);
|
||||
}
|
||||
const client = new BskyClient();
|
||||
client.agent.resumeSession(session);
|
||||
await client.agent.resumeSession(session);
|
||||
client.me = {
|
||||
did: session.did,
|
||||
handle: session.handle,
|
||||
|
Reference in New Issue
Block a user