diff --git a/modals/userRequest/StudyPresetModal.tsx b/modals/userRequest/StudyPresetModal.tsx index cba62bcc1..8a58913e2 100644 --- a/modals/userRequest/StudyPresetModal.tsx +++ b/modals/userRequest/StudyPresetModal.tsx @@ -1,7 +1,7 @@ import { Box } from "@chakra-ui/react"; import dayjs from "dayjs"; -import { useSession } from "next-auth/react"; import { usePathname, useRouter, useSearchParams } from "next/navigation"; +import { useSession } from "next-auth/react"; import { useEffect, useState } from "react"; import { useQueryClient } from "react-query"; diff --git a/pages/api/token/index.ts b/pages/api/token/index.ts index f68ad2e27..4a55b10fa 100644 --- a/pages/api/token/index.ts +++ b/pages/api/token/index.ts @@ -7,9 +7,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const secret = process.env.NEXTAUTH_SECRET; switch (method) { - case "GET": + case "GET": { const jwt = await getToken({ req, secret, raw: true }); res.status(200).json(jwt); break; + } } }