23 lines
683 B
HTML
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>
|