Skip to content

Conversation

@cccwon2
Copy link
Contributor

@cccwon2 cccwon2 commented Nov 23, 2024

No description provided.

@cccwon2 cccwon2 self-assigned this Nov 23, 2024
@github-actions
Copy link

💄 Storybook: https://673dcf13c9a3a1189a7c6fd4-wjyqnwkclj.chromatic.com/ # Chromatic에서 생성된 Storybook URL
🕖 Update: 2024년 11월 23일 09시 51분 43초 # 현재 시간

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 ! oauth 토큰 부분만 다시한번 확인해주세욥 👍

Copy link
Collaborator

@imtaejunk imtaejunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@cccwon2 cccwon2 merged commit 06240f5 into dev Nov 23, 2024
4 checks passed
@yyezzzy yyezzzy removed their request for review November 23, 2024 04:27
@yyezzzy yyezzzy self-assigned this Nov 23, 2024
Comment on lines +12 to +14
if (!["google", "kakao"].includes(provider)) {
return NextResponse.json({ message: "Invalid provider" }, { status: 400 });
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

소셜 로그인 대비로 미리 잡아두셨군요 !

@@ -0,0 +1,44 @@
import { AxiosError } from "axios";
import { cookies } from "next/headers";
import { NextResponse } from "next/server";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next/server !

Comment on lines +34 to +42
return NextResponse.json(response.data);
} catch (error: unknown) {
if (error instanceof AxiosError) {
console.error("GET /api/users/me/posts error:", error);
if (error.response) {
return NextResponse.json({ message: error.response.data.message }, { status: error.response.status });
}
}
return NextResponse.json({ message: "Internal Server Error" }, { status: 500 });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이전에 next/server를 사용하지 않았어서 헷갈리는데
import axiosInstance from "./axiosInstanceApi";
import axios from "axios";
로 api를 통신하는 방법과 어떤차이가 있나요 ??

@yyezzzy yyezzzy added the 📬 API API 통신 관련 label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📬 API API 통신 관련

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants