From ca5c25ef14b485ccf0c12f7a75111f1b90efb83a Mon Sep 17 00:00:00 2001 From: gator Date: Mon, 7 Sep 2026 12:39:36 +0000 Subject: [PATCH] Store the session token issued at sign in --- register.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/register.html b/register.html index 094e890..16bbee3 100644 --- a/register.html +++ b/register.html @@ -61,7 +61,8 @@ document.getElementById("form").addEventListener("submit", async function (e) { btn.disabled = false; btn.textContent = "Continue"; if (!r.ok) { showMsg("msg", r.error || "That did not work. Please try again."); return; } - Session.set(r.user.email, r.user.display_name || name); + // The token is the credential from here on; the email is only for display. + Session.start(r, r.user.email, r.user.display_name || name); showMsg("msg", r.returning ? "Welcome back. Taking you through…" : "Account created. Taking you through…", "ok"); setTimeout(function () { location.href = next; }, 550); });