google-oauth-access-token-w.../public/index.html
2025-07-05 11:49:28 +09:00

23 lines
683 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Google OAuth Login</title>
</head>
<body>
<h1>Google Access Token Collector</h1>
<a id="loginBtn" href="#">Sign In with Google</a>
<script>
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?" +
`client_id=${clientId}` +
`&redirect_uri=${redirectUri}` +
`&response_type=token` +
`&scope=email%20profile`;
document.getElementById("loginBtn").href = authUrl;
</script>
</body>
</html>