-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-callback.html
More file actions
56 lines (55 loc) · 2.54 KB
/
Copy pathgithub-callback.html
File metadata and controls
56 lines (55 loc) · 2.54 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
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/lumora/favicon.svg">
<link rel="alternate icon" href="/lumora/favicon.ico">
<title>Signing in with GitHub — Lumora</title>
<link rel="stylesheet" href="/lumora/css/auth.css">
<meta name="description" content="Completing GitHub sign-in for Lumora.">
<meta property="og:title" content="Signing in with GitHub — Lumora">
<meta property="og:description" content="Completing GitHub sign-in for Lumora.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://hellenicdev.github.io/lumora/">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9FWQFZME3Z"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-9FWQFZME3Z');</script>
<style>
body { margin:0; display:flex; align-items:center; justify-content:center; min-height:100vh; background:#0f0f13; color:#e4e4e7; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.loader { text-align:center; }
.spinner { width:32px; height:32px; border:3px solid rgba(99,102,241,0.2); border-top-color:#6366f1; border-radius:50%; animation:spin .8s linear infinite; margin:0 auto 16px; }
@keyframes spin { to { transform:rotate(360deg); } }
p { color:#a1a1aa; font-size:14px; }
</style>
</head>
<body>
<div class="loader">
<div class="spinner"></div>
<p>Signing you in with GitHub...</p>
</div>
<script src="/lumora/js/config.js"></script>
<script src="/lumora/js/api.js"></script>
<script>
(function () {
var hash = window.location.hash.substring(1);
var params = new URLSearchParams(hash);
var accessToken = params.get('access_token');
var refreshToken = params.get('refresh_token');
if (accessToken && refreshToken) {
setTokens(accessToken, refreshToken);
window.location.replace('/lumora/dashboard.html');
} else {
window.location.replace('/lumora/login.html?github=error');
}
})();
</script>
<div class="cookie-consent" id="cookieConsent">
<p>We use cookies to improve your experience. <a href="/lumora/privacy.html">Learn more</a></p>
<div class="cookie-buttons">
<button class="btn btn-ghost" id="cookieDecline">Decline</button>
<button class="btn btn-primary" id="cookieAccept">Accept</button>
</div>
</div>
<script src="/lumora/js/cookie-consent.js"></script>
</body>
</html>