package.json에 node-cron 및 node-fetch 의존성 추가 server.js에서 루트 경로에 대한 리다이렉트 로직 추가 .gitignore 파일 생성 public/index.html 및 callback/callback.html 파일 삭제
17 lines
383 B
HTML
17 lines
383 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>OAuth Callback</title>
|
|
</head>
|
|
<body>
|
|
<h2>처리 중입니다...</h2>
|
|
|
|
<script>
|
|
const hash = window.location.hash.substring(1); // '#access_token=...'
|
|
const params = new URLSearchParams(hash);
|
|
const accessToken = params.get("access_token");
|
|
|
|
location.href = "/token?access_token=" + accessToken;
|
|
</script>
|
|
</body>
|
|
</html>
|