-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth-success.html
58 lines (58 loc) · 1.65 KB
/
auth-success.html
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
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authentication Successful</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
}
.message-box {
text-align: center;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
background: #fff;
border: 1px solid #ddd;
}
button {
padding: 10px 20px;
margin-top: 20px;
font-size: 16px;
cursor: pointer;
background-color: #ff7657;
color: white;
border: none;
border-radius: 5px;
}
button:hover {
background-color: #ff7657;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const urlParams = new URLSearchParams(window.location.search);
// Use postMessage to send the message back to the parent window
window.opener.postMessage({
type: 'redirected',
status: true
}, '*');
});
</script>
</head>
<body>
<div class="message-box">
<h1>Authentication Successful</h1>
<p>You can now close this popup window.</p>
<button onclick="window.close();">Close Window</button>
</div>
</body>
</html>