diff --git a/contexts/postcard.tsx b/contexts/postcard.tsx index 5824148..a3f3d7b 100644 --- a/contexts/postcard.tsx +++ b/contexts/postcard.tsx @@ -1,6 +1,6 @@ import { createStateContext } from "../utils/stateContext"; import { StaticImageData } from "next/image"; -import * as Telegram from "../utils/TelegramUserDataClass" +import * as Telegram from "../utils/TelegramLoginDataClass" /** diff --git a/pages/api/login/index.ts b/pages/api/login/index.ts index 4aedcbc..4dcd863 100644 --- a/pages/api/login/index.ts +++ b/pages/api/login/index.ts @@ -1,6 +1,6 @@ import { NextApiRequest, NextApiResponse } from "next" import { client } from "../../../utils/prismaClient" -import { TelegramUserDataClass } from "../../../utils/TelegramUserDataClass" +import { TelegramLoginDataClass } from "../../../utils/TelegramLoginDataClass" import { default as cryptoRandomString } from "crypto-random-string" import { ApiResult } from "../../../types/api" import { FestaLoginData } from "../../../types/user" @@ -40,7 +40,7 @@ async function loginTelegram(req: NextApiRequest, res: NextApiResponse