mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-10 14:11:22 -06:00
✨ fixed to work even if @ is in login handle name
This commit is contained in:
parent
c4bd79ad90
commit
82096d339d
5
.changeset/happy-crabs-unite.md
Normal file
5
.changeset/happy-crabs-unite.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"sky-follower-bridge": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
- fixed to work even if @ is in login handle name
|
@ -23,7 +23,10 @@ export class BskyClient {
|
|||||||
password,
|
password,
|
||||||
}: BskyLoginParams): Promise<BskyClient> {
|
}: BskyLoginParams): Promise<BskyClient> {
|
||||||
const client = new 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 = {
|
client.me = {
|
||||||
did: data.did,
|
did: data.did,
|
||||||
handle: data.handle,
|
handle: data.handle,
|
||||||
|
@ -133,7 +133,7 @@ function IndexPopup() {
|
|||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Bluesky login email or handle(without @)"
|
placeholder="Bluesky handle or login email"
|
||||||
value={userId}
|
value={userId}
|
||||||
onChange={(e) => setUserId(e.target.value)}
|
onChange={(e) => setUserId(e.target.value)}
|
||||||
className="input input-bordered input-sm w-full max-w-xs"
|
className="input input-bordered input-sm w-full max-w-xs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user