Skip to content

Commit

Permalink
fix: schema를 수정합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero-1016 committed Mar 3, 2025
1 parent 899189e commit b97e554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend/auth-server/src/controllers/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ function authController() {
};

const loginStatusCheck = async (req: FastifyRequest, res: FastifyReply) => {
const id = req.user?.id;
const refreshToken = req.headers['refresh-token'] as string;

if (!id || !refreshToken) {
if (!refreshToken) {
handleSuccess(res, SUCCESS_MESSAGE.loginStatusDisabled, 200);
return;
}
Expand Down
1 change: 1 addition & 0 deletions src/backend/auth-server/src/schema/authSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const healthCheckSchema = {
const loginStatusCheckSchema = {
tags: ['auth'],
description: '로그인 상태를 확인 합니다.',
security: [{ bearerAuth: [] }],
response: {
200: z.object({
code: z.string().default('AUTH109'),
Expand Down

0 comments on commit b97e554

Please sign in to comment.