From bc796e806d441e571928a78255807b8859cc03ba Mon Sep 17 00:00:00 2001 From: imnyang Date: Sat, 5 Jul 2025 13:57:41 +0900 Subject: [PATCH] =?UTF-8?q?OAuth=20=EC=9D=B8=EC=A6=9D=20URL=EC=97=90?= =?UTF-8?q?=EC=84=9C=20response=5Ftype=EC=9D=84=20code=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=ED=95=98=EC=97=AC=20=EB=A6=AC=ED=94=84?= =?UTF-8?q?=EB=A0=88=EC=8B=9C=20=ED=86=A0=ED=81=B0=20=EC=88=98=EC=8B=A0=20?= =?UTF-8?q?=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index bd49b7a..4543f86 100644 --- a/server.js +++ b/server.js @@ -14,9 +14,8 @@ app.get("/", (req, res) => { const authUrl = "https://accounts.google.com/o/oauth2/v2/auth?" + `client_id=${clientId}` + `&redirect_uri=${redirectUri}` + - `&response_type=token` + // code로 변경하여 리프레시 토큰도 받을 수 있도록 - `&scope=email%20profile - `; // 매번 동의 화면을 표시하여 리프레시 토큰 확보 + `&response_type=token` + + `&scope=email%20profile`; res.redirect(authUrl); });