클라이언트 시크릿을 환경 변수로 변경

This commit is contained in:
암냥 2025-07-05 13:25:08 +09:00
commit e5696aeb19

View file

@ -107,7 +107,7 @@ app.get("/exchange", async (req, res) => {
}, },
body: new URLSearchParams({ body: new URLSearchParams({
client_id: "16435018183-9a880bertda0en85387ge8f8mgsves71.apps.googleusercontent.com", client_id: "16435018183-9a880bertda0en85387ge8f8mgsves71.apps.googleusercontent.com",
client_secret: "YOUR_CLIENT_SECRET", // 실제 클라이언트 시크릿으로 변경 필요 client_secret: process.env.CLIENT_SECRET, // 실제 클라이언트 시크릿으로 변경 필요
code: code, code: code,
grant_type: 'authorization_code', grant_type: 'authorization_code',
redirect_uri: "https://google-oauth-access-token-whs.hako.li/callback" redirect_uri: "https://google-oauth-access-token-whs.hako.li/callback"