From c7d12dcf3e8a5b94c0d989b48a6799a3e04c63e4 Mon Sep 17 00:00:00 2001 From: jeasong Date: Thu, 6 May 2021 13:18:38 +0900 Subject: [PATCH] hoxfix token --- src/App.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index e1966db..8cd0cdc 100644 --- a/src/App.js +++ b/src/App.js @@ -117,8 +117,11 @@ export default function App() { const getAccessToken = async (authorizationCode) => { // ! 구글 로그인 - let resp = await axios.post('http://localhost:4000/googlelogin', { + let resp = await axios.post('http://localhost:4000/googlelogin', + { authorizationCode: authorizationCode, + },{ + withCredentials: true }); console.log(resp.data) issueAccessToken(resp.data.accessToken)