21 lines
653 B
HTML
21 lines
653 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Signing you in…</title>
|
|
<script>
|
|
(function(){
|
|
const hash = new URLSearchParams(location.hash.slice(1));
|
|
const bearer = hash.get("bearer");
|
|
const next = hash.get("next") || "/";
|
|
try {
|
|
// Prefer sessionStorage; keep localStorage for backward compatibility
|
|
if (bearer) sessionStorage.setItem("gc_bearer", bearer);
|
|
const k = "gc_client_config_v1";
|
|
const cfg = JSON.parse(localStorage.getItem(k) || "{}");
|
|
if (bearer) cfg.bearer = bearer;
|
|
localStorage.setItem(k, JSON.stringify(cfg));
|
|
} catch {}
|
|
history.replaceState(null, "", next);
|
|
location.href = next;
|
|
})();
|
|
</script>
|