클라이언트 시크릿을 환경 변수로 변경하고 .env.example 파일 추가
This commit is contained in:
parent
48af411c99
commit
05cf57df86
2 changed files with 3 additions and 2 deletions
1
.env.example
Normal file
1
.env.example
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
CLIENT_SECRET=
|
||||||
|
|
@ -53,7 +53,7 @@ async function refreshAccessToken() {
|
||||||
},
|
},
|
||||||
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, // 실제 클라이언트 시크릿으로 변경 필요
|
||||||
refresh_token: tokenStorage.refreshToken,
|
refresh_token: tokenStorage.refreshToken,
|
||||||
grant_type: 'refresh_token'
|
grant_type: 'refresh_token'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue