feat: 대시보드에 유저의 정보를 불러오기
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user