mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-09-13 07:23:32 -06:00
✨ fixed to work even if @ is in login handle name
This commit is contained in:
@@ -23,7 +23,10 @@ export class BskyClient {
|
||||
password,
|
||||
}: BskyLoginParams): Promise<BskyClient> {
|
||||
const client = new BskyClient();
|
||||
const {data} = await client.agent.login({ identifier, password });
|
||||
const {data} = await client.agent.login({
|
||||
identifier: identifier.replace(/^@/, ""), // if identifier is a handle name, @ is not required
|
||||
password
|
||||
});
|
||||
client.me = {
|
||||
did: data.did,
|
||||
handle: data.handle,
|
||||
|
Reference in New Issue
Block a user