-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-frontend.html
More file actions
48 lines (45 loc) · 1.5 KB
/
test-frontend.html
File metadata and controls
48 lines (45 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Google Login Test</title>
</head>
<body>
<a href="http://localhost:8080/auth/login-google">
<button>구글 로그인</button>
</a>
<a href="http://localhost:8080/auth/login-naver">
<button>네이버 로그인</button>
</a>
<a href="http://localhost:8080/auth/login-kakao">
<button>카카오 로그인</button>
</a>
<a href="https://publit2-image-531771359911.asia-northeast1.run.app/auth/login-google">
<button>구글 로그인 배포</button>
</a>
<a href="https://publit2-image-531771359911.asia-northeast1.run.app/auth/login-naver">
<button>네이버 로그인 배포</button>
</a>
<a href="https://publit2-image-531771359911.asia-northeast1.run.app/auth/login-kakao">
<button>카카오 로그인 배포</button>
</a>
<textarea id="result" rows="10" cols="60" readonly>
응답 대기 중...</textarea
>
<script>
fetch('http://localhost:8080/auth/refresh-token', {
method: 'POST',
credentials: 'include',
})
.then((res) => res.text())
.then((data) => {
console.log(data);
document.getElementById('result').value = 'Access Token:\n' + data;
})
.catch((err) => {
document.getElementById('result').value = '에러 발생: ' + err.message;
});
</script>
</body>
</html>