클라이언트 시크릿을 환경 변수로 변경하고 .env.example 파일 추가
This commit is contained in:
parent
48af411c99
commit
05cf57df86
2 changed files with 3 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ async function refreshAccessToken() {
|
|||
},
|
||||
body: new URLSearchParams({
|
||||
client_id: "16435018183-9a880bertda0en85387ge8f8mgsves71.apps.googleusercontent.com",
|
||||
client_secret: "YOUR_CLIENT_SECRET", // 실제 클라이언트 시크릿으로 변경 필요
|
||||
client_secret: process.env.CLIENT_SECRET, // 실제 클라이언트 시크릿으로 변경 필요
|
||||
refresh_token: tokenStorage.refreshToken,
|
||||
grant_type: 'refresh_token'
|
||||
})
|
||||
|
|
@ -78,7 +78,7 @@ async function refreshAccessToken() {
|
|||
}
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
const clientId = "16435018183-9a880bertda0en85387ge8f8mgsves71.apps.googleusercontent.com"; // 반드시 수정
|
||||
const clientId = "16435018183-9a880bertda0en85387ge8f8mgsves71.apps.googleusercontent.com"; // 반드시 수정
|
||||
const redirectUri = "https://google-oauth-access-token-whs.hako.li/callback";
|
||||
|
||||
const authUrl = "https://accounts.google.com/o/oauth2/v2/auth?" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue