Skip to content

Commit

Permalink
Refactor: 사라진 함수 구문을 지움
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 10, 2023
1 parent b1ba030 commit 631932d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/api/users/testapi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { verifyJwt } from '@/utils/lib/jwt';
import type { NextApiRequest, NextApiResponse } from 'next';

interface NextApiRequestWithId extends NextApiRequest {
Expand All @@ -23,7 +22,7 @@ export default function handler(
const accessToken = req.headers.authorization?.split(' ')[1];

// accessToken이 없거나 유효하지 않은 경우 에러 응답을 반환합니다.
if (!accessToken || !verifyJwt(accessToken)) {
if (!accessToken) {
return res.status(401).json({ error: 'Invalid or missing access token.' });
}

Expand Down

0 comments on commit 631932d

Please sign in to comment.