mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-18 17:52:22 -06:00
18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
import type { PlasmoMessaging } from "@plasmohq/messaging"
|
|
import { BskyClient } from "../../lib/bskyClient";
|
|
|
|
const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
|
const { identifier, password } = req.body
|
|
|
|
const agent = await BskyClient.createAgent({
|
|
identifier,
|
|
password,
|
|
})
|
|
|
|
res.send({
|
|
session: agent.session,
|
|
})
|
|
}
|
|
|
|
export default handler
|