Init
This commit is contained in:
commit
1bd830bda3
7 changed files with 882 additions and 0 deletions
23
public/index.html
Normal file
23
public/index.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue