Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Apr 16, 2024
1 parent e5dc1dd commit 2e4c94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modals/userRequest/StudyPresetModal.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
3 changes: 2 additions & 1 deletion pages/api/token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 2e4c94b

Please sign in to comment.