-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallback.html
More file actions
48 lines (47 loc) · 1.46 KB
/
Copy pathcallback.html
File metadata and controls
48 lines (47 loc) · 1.46 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>Connecting...</title>
<style>
body {
font-family: system-ui, -apple-system, sans-serif;
background: #0a0a0a;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
text-align: center;
}
.container { max-width: 360px; }
.spinner {
width: 48px; height: 48px;
border: 4px solid #6b21a8;
border-top-color: transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
</style>
</head>
<body>
<div class="container">
<div class="spinner"></div>
<h2>Completing connection</h2>
<p>Please wait while we sync your wallet...</p>
</div>
<script>
// The SDK will automatically detect the 'code' parameter in the URL
// when it initializes on your main page. We simply redirect back
// to the wallet page immediately.
window.addEventListener('load', () => {
const searchParams = window.location.search;
window.location.replace('/wallet.html' + searchParams);
});
</script>
</body>
</html>