mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-09-13 23:43:31 -06:00
chore: fix lint
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { PlasmoMessaging } from "@plasmohq/messaging";
|
||||
import { BskyClient } from "../../lib/bskyClient";
|
||||
import { AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE } from "~lib/constants";
|
||||
import { ComAtprotoServerCreateSession } from "@atproto/api";
|
||||
import type { PlasmoMessaging } from "@plasmohq/messaging";
|
||||
import { AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE } from "~lib/constants";
|
||||
import { BskyClient } from "../../lib/bskyClient";
|
||||
|
||||
const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
||||
const { identifier, password, authFactorToken } = req.body;
|
||||
@@ -17,7 +17,9 @@ const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
||||
session: agent.session,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof ComAtprotoServerCreateSession.AuthFactorTokenRequiredError) {
|
||||
if (
|
||||
e instanceof ComAtprotoServerCreateSession.AuthFactorTokenRequiredError
|
||||
) {
|
||||
res.send({
|
||||
error: {
|
||||
message: AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE,
|
||||
|
Reference in New Issue
Block a user