feat: 대시보드에 유저의 정보를 불러오기

This commit is contained in:
2026-02-26 20:49:12 +09:00
parent d56303cec4
commit c92e270716
11 changed files with 213 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ export const useSocialLogin = () => {
setIsLoading(true);
setError(null);
console.log("token:" + socialToken);
console.log(`[${provider}] token:`, socialToken);
try {
// 1. 백엔드로 소셜 토큰 전송 (토큰 교환)
const response = await authApi.loginWithSocial({
@@ -50,6 +50,7 @@ export const useSocialLogin = () => {
*/
const loginWithGoogle = useGoogleLogin({
onSuccess: (tokenResponse) => {
console.log(tokenResponse);
handleSocialLogin("google", tokenResponse.access_token);
},
onError: () => {