google-oauth-access-token-w.../callback/callback.html
2025-07-05 12:54:19 +09:00

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>