@sixb/server 0.1.24 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14911,24 +14911,26 @@ function registerAuthRoutes(app, host, options) {
14911
14911
  }).get("/auth/device", async ({ request }) => {
14912
14912
  const rawUserCode = new URL(request.url).searchParams.get("user_code");
14913
14913
  if (!rawUserCode) {
14914
- return authPageResponse([
14914
+ return devicePageResponse([
14915
+ deviceTileEmblem("monitor"),
14915
14916
  "<h1>Authorize a device</h1>",
14917
+ "<p>Enter the code shown on the device you're signing in.</p>",
14916
14918
  '<form method="get" action="/auth/device">',
14917
- '<input name="user_code" autocomplete="one-time-code" placeholder="BCDF-HJKM" aria-label="Device code" required autofocus>',
14919
+ '<input class="code-input" name="user_code" type="text" autocomplete="one-time-code" autocapitalize="characters" spellcheck="false" placeholder="BCDF-HJKM" aria-label="Device code" required autofocus>',
14918
14920
  '<button type="submit">Continue</button>',
14919
14921
  "</form>"
14920
14922
  ].join(""));
14921
14923
  }
14922
14924
  const userCode = normalizeDeviceUserCode(rawUserCode);
14923
14925
  if (!userCode)
14924
- return authPageResponse("<h1>Invalid authorization</h1>", 400);
14926
+ return invalidDeviceAuthorizationResponse();
14925
14927
  const authorization = await requireAuthStorage(host).deviceAuthorizations.getByUserCode({
14926
14928
  projectId: host.id,
14927
14929
  userCode
14928
14930
  });
14929
14931
  const now = new Date;
14930
14932
  if (!authorization || authorization.status !== "pending" || authorization.expiresAt <= now) {
14931
- return authPageResponse("<h1>This authorization has expired</h1>", 400);
14933
+ return expiredDeviceAuthorizationResponse();
14932
14934
  }
14933
14935
  const session = await host.auth.getSession(request);
14934
14936
  if (!session.authenticated)
@@ -14939,20 +14941,25 @@ function registerAuthRoutes(app, host, options) {
14939
14941
  cookieOptions,
14940
14942
  expiresAt: session.session.expiresAt
14941
14943
  });
14942
- const groups = session.groupIds.length ? `<p>Groups: ${escapeHtml(session.groupIds.join(", "))}</p>` : "<p>Groups: none</p>";
14943
- const response = authPageResponse([
14944
+ const groupLabels = new Map(host.definitions.security.listGroups().map((group) => [group.id, group.label ?? group.id]));
14945
+ const groups = session.groupIds.map((id) => groupLabels.get(id) ?? id).join(", ") || "None";
14946
+ const response = devicePageResponse([
14947
+ deviceLinkEmblem("waiting", accountInitials(session.user)),
14944
14948
  "<h1>Authorize this device?</h1>",
14945
14949
  `<p><strong>${escapeHtml(authorization.clientName)}</strong> is requesting to sign in as you.</p>`,
14946
- `<p>Code: <strong>${escapeHtml(authorization.userCode)}</strong></p>`,
14947
- "<p>Authorize it only if you started this sign-in, and the device asking shows this same code.</p>",
14948
- "<p>It stays signed in until you sign it out or it goes unused for a while.</p>",
14949
- groups,
14950
- '<form method="post" action="/auth/device">',
14950
+ deviceUserCodeHtml(authorization.userCode),
14951
+ '<p class="hint">Authorize it only if you started this sign-in, and the device asking shows this same code.</p>',
14952
+ '<dl class="details">',
14953
+ `<div><dt>Account</dt><dd title="${escapeHtml(session.user.email)}">${escapeHtml(session.user.email)}</dd></div>`,
14954
+ `<div><dt>Groups</dt><dd title="${escapeHtml(groups)}">${escapeHtml(groups)}</dd></div>`,
14955
+ "</dl>",
14956
+ '<form class="actions" method="post" action="/auth/device">',
14951
14957
  `<input type="hidden" name="userCode" value="${escapeHtml(userCode)}">`,
14952
14958
  `<input type="hidden" name="csrfToken" value="${escapeHtml(csrf.token)}">`,
14959
+ '<button class="secondary" name="decision" value="deny" type="submit">Deny</button>',
14953
14960
  '<button name="decision" value="approve" type="submit">Authorize</button>',
14954
- '<button name="decision" value="deny" type="submit">Deny</button>',
14955
- "</form>"
14961
+ "</form>",
14962
+ '<p class="footnote">It stays signed in until you sign it out or it goes unused for a while.</p>'
14956
14963
  ].join(""));
14957
14964
  if (csrf.setCookie)
14958
14965
  response.headers.append("set-cookie", csrf.setCookie);
@@ -14964,7 +14971,11 @@ function registerAuthRoutes(app, host, options) {
14964
14971
  return authPageResponse("<h1>Authentication required</h1>", 401);
14965
14972
  const csrfCookieName = host.auth.getCookieOptions().csrfCookieName;
14966
14973
  if (!verifyCsrfToken(request, { cookieName: csrfCookieName, token: parsed.csrfToken })) {
14967
- return authPageResponse("<h1>Invalid authorization request</h1>", 403);
14974
+ return devicePageResponse([
14975
+ deviceTileEmblem("alert"),
14976
+ "<h1>Invalid authorization request</h1>",
14977
+ "<p>Reload the approval page and try again.</p>"
14978
+ ].join(""), { status: 403 });
14968
14979
  }
14969
14980
  const storage = requireAuthStorage(host);
14970
14981
  const authorization = await storage.deviceAuthorizations.getByUserCode({
@@ -14972,7 +14983,7 @@ function registerAuthRoutes(app, host, options) {
14972
14983
  userCode: parsed.userCode
14973
14984
  });
14974
14985
  if (!authorization)
14975
- return authPageResponse("<h1>Invalid authorization</h1>", 400);
14986
+ return invalidDeviceAuthorizationResponse();
14976
14987
  const decidedAt = new Date;
14977
14988
  try {
14978
14989
  if (parsed.decision === "approve") {
@@ -14992,11 +15003,22 @@ function registerAuthRoutes(app, host, options) {
14992
15003
  }
14993
15004
  } catch (error) {
14994
15005
  if (error instanceof AuthStorageError && error.code === "invalid_device_authorization") {
14995
- return authPageResponse("<h1>This authorization has expired</h1>", 400);
15006
+ return expiredDeviceAuthorizationResponse();
14996
15007
  }
14997
15008
  throw error;
14998
15009
  }
14999
- return authPageResponse(parsed.decision === "approve" ? "<h1>Device authorized</h1><p>You can close this window.</p>" : "<h1>Authorization denied</h1><p>You can close this window.</p>");
15010
+ const client = `<strong>${escapeHtml(authorization.clientName)}</strong>`;
15011
+ return devicePageResponse((parsed.decision === "approve" ? [
15012
+ deviceLinkEmblem("approved", accountInitials(session.user)),
15013
+ "<h1>Device authorized</h1>",
15014
+ `<p>${client} is signed in as you.</p>`,
15015
+ '<p class="footnote">You can close this window.<br>Sign it out anytime from Settings &rsaquo; Personal.</p>'
15016
+ ] : [
15017
+ deviceLinkEmblem("denied", accountInitials(session.user)),
15018
+ "<h1>Authorization denied</h1>",
15019
+ `<p>${client} was not signed in.</p>`,
15020
+ '<p class="footnote">You can close this window.</p>'
15021
+ ]).join(""));
15000
15022
  }, {
15001
15023
  body: t.Object({
15002
15024
  userCode: t.String(),
@@ -15064,10 +15086,11 @@ function registerAuthRoutes(app, host, options) {
15064
15086
  return deviceSignInPendingResponse(authorization.userCode, deviceVerificationUrl(options, request, authorization.userCode));
15065
15087
  }
15066
15088
  if (authorization || url.searchParams.has("user_code")) {
15067
- const response = authPageResponse([
15068
- authorization?.status === "denied" ? "<h1>Sign-in was denied</h1>" : "<h1>This sign-in request has expired</h1>",
15069
- `<p><a href="${escapeHtml(deviceSignInPath(url, null))}">Try again</a></p>`
15070
- ].join(""), 400);
15089
+ const response = devicePageResponse([
15090
+ ...authorization?.status === "denied" ? [deviceLinkEmblem("denied", null), "<h1>Sign-in was denied</h1>"] : [deviceTileEmblem("clock"), "<h1>This sign-in request has expired</h1>"],
15091
+ "<p>Start again to get a new code.</p>",
15092
+ `<a class="button" href="${escapeHtml(deviceSignInPath(url, null))}">Try again</a>`
15093
+ ].join(""), { status: 400, title: "Sign in" });
15071
15094
  response.headers.append("set-cookie", clearCookie);
15072
15095
  return response;
15073
15096
  }
@@ -16059,19 +16082,79 @@ function deviceVerificationUrl(options, request, userCode) {
16059
16082
  return url.toString();
16060
16083
  }
16061
16084
  function deviceSignInPendingResponse(userCode, verificationUrl) {
16062
- return new Response(authPageDocument([
16085
+ return devicePageResponse([
16086
+ deviceLinkEmblem("waiting", null),
16063
16087
  "<h1>Continue in your browser</h1>",
16064
16088
  "<p>Approve this sign-in from a browser where you are signed in. This page continues on its own.</p>",
16065
- `<p>Code: <strong>${escapeHtml(userCode)}</strong></p>`,
16066
- `<p><a href="${escapeHtml(verificationUrl)}" target="_blank" rel="noopener">Open the approval page</a></p>`
16067
- ].join(""), "Sign in", `<meta http-equiv="refresh" content="${DEVICE_AUTHORIZATION_POLL_INTERVAL_SECONDS}">`), {
16068
- status: 200,
16089
+ deviceUserCodeHtml(userCode),
16090
+ `<a class="button secondary" href="${escapeHtml(verificationUrl)}" target="_blank" rel="noopener">Open the approval page</a>`,
16091
+ '<p class="status">Waiting for approval</p>'
16092
+ ].join(""), {
16093
+ title: "Sign in",
16094
+ head: `<meta http-equiv="refresh" content="${DEVICE_AUTHORIZATION_POLL_INTERVAL_SECONDS}">`
16095
+ });
16096
+ }
16097
+ function devicePageResponse(body, options = {}) {
16098
+ return new Response(authPageDocument(`<div class="device">${body}</div>`, options.title ?? "Authorize device", `${DEVICE_PAGE_STYLE}${options.head ?? ""}`), {
16099
+ status: options.status ?? 200,
16069
16100
  headers: {
16070
16101
  "content-type": "text/html; charset=utf-8",
16071
16102
  "cache-control": "no-store"
16072
16103
  }
16073
16104
  });
16074
16105
  }
16106
+ function expiredDeviceAuthorizationResponse() {
16107
+ return devicePageResponse([
16108
+ deviceTileEmblem("clock"),
16109
+ "<h1>This authorization has expired</h1>",
16110
+ "<p>Start the sign-in again on your device to get a new code.</p>"
16111
+ ].join(""), { status: 400 });
16112
+ }
16113
+ function invalidDeviceAuthorizationResponse() {
16114
+ return devicePageResponse([
16115
+ deviceTileEmblem("alert"),
16116
+ "<h1>Invalid authorization</h1>",
16117
+ "<p>Check the code shown on your device and enter it again.</p>",
16118
+ '<a class="button" href="/auth/device">Enter the code</a>'
16119
+ ].join(""), { status: 400 });
16120
+ }
16121
+ var DEVICE_ICONS = {
16122
+ monitor: '<rect width="20" height="14" x="2" y="3" rx="2"/><path d="M8 21h8"/><path d="M12 17v4"/>',
16123
+ user: '<circle cx="12" cy="8" r="4"/><path d="M20 21a8 8 0 0 0-16 0"/>',
16124
+ check: '<path d="M20 6 9 17l-5-5"/>',
16125
+ cross: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
16126
+ clock: '<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',
16127
+ alert: '<circle cx="12" cy="12" r="10"/><path d="M12 8v4"/><path d="M12 16h.01"/>'
16128
+ };
16129
+ function deviceIcon(name) {
16130
+ return `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${DEVICE_ICONS[name]}</svg>`;
16131
+ }
16132
+ function deviceLinkEmblem(state, initials) {
16133
+ const badge = state === "waiting" ? "" : `<span class="badge">${deviceIcon(state === "approved" ? "check" : "cross")}</span>`;
16134
+ return [
16135
+ `<div class="emblem emblem-${state}" aria-hidden="true">`,
16136
+ `<span class="tile">${deviceIcon("monitor")}</span>`,
16137
+ `<span class="link">${badge}</span>`,
16138
+ `<span class="tile tile-account">${initials ? escapeHtml(initials) : deviceIcon("user")}</span>`,
16139
+ "</div>"
16140
+ ].join("");
16141
+ }
16142
+ function deviceTileEmblem(icon) {
16143
+ return `<div class="emblem" aria-hidden="true"><span class="tile">${deviceIcon(icon)}</span></div>`;
16144
+ }
16145
+ function deviceUserCodeHtml(userCode) {
16146
+ const cells = [...userCode].map((character) => character === "-" ? '<span class="code-dash"></span>' : `<span>${escapeHtml(character)}</span>`);
16147
+ return [
16148
+ `<p class="sr-only">Code: ${escapeHtml(userCode)}</p>`,
16149
+ `<div class="code" aria-hidden="true">${cells.join("")}</div>`
16150
+ ].join("");
16151
+ }
16152
+ function accountInitials(user) {
16153
+ const words = (user.displayName?.trim() || user.email).split(/\s+/);
16154
+ const first = words[0] ?? "";
16155
+ const last = words.length > 1 ? words.at(-1) ?? "" : "";
16156
+ return `${[...first][0] ?? ""}${[...last][0] ?? ""}`.toUpperCase();
16157
+ }
16075
16158
  var MAGIC_LINK_PENDING_COOKIE_NAME = "sixb_pending";
16076
16159
  var MAGIC_LINK_PENDING_COOKIE_FALLBACK_MAX_AGE_SECONDS = 15 * 60;
16077
16160
  function magicLinkPendingCookieMaxAgeSeconds(strategy) {
@@ -16313,7 +16396,9 @@ var AUTH_PAGE_STYLE = `<style>
16313
16396
  --primary: #0a0a0a;
16314
16397
  --primary-foreground: #ffffff;
16315
16398
  --border: #e2e2e2;
16399
+ --muted: #f4f4f4;
16316
16400
  --muted-foreground: #5f5f5f;
16401
+ --success: #16a34a;
16317
16402
  --ring: #0a0a0a;
16318
16403
  --radius: 0.5rem;
16319
16404
  }
@@ -16325,7 +16410,9 @@ var AUTH_PAGE_STYLE = `<style>
16325
16410
  --primary: #f4f4f4;
16326
16411
  --primary-foreground: #0a0a0a;
16327
16412
  --border: #262626;
16413
+ --muted: #1c1c1c;
16328
16414
  --muted-foreground: #8a8a8a;
16415
+ --success: #22c55e;
16329
16416
  --ring: #f4f4f4;
16330
16417
  }
16331
16418
  }
@@ -16424,6 +16511,232 @@ button:disabled { cursor: default; }
16424
16511
  }
16425
16512
  @keyframes spin { to { transform: rotate(360deg); } }
16426
16513
  </style>`;
16514
+ var DEVICE_PAGE_STYLE = `<style>
16515
+ .device {
16516
+ --line: color-mix(in srgb, var(--muted-foreground) 55%, transparent);
16517
+ text-align: center;
16518
+ }
16519
+ .device h1 { margin-top: 1.5rem; }
16520
+ .device h1,
16521
+ .device p { text-wrap: balance; }
16522
+ .device p strong { overflow-wrap: anywhere; }
16523
+ .sr-only {
16524
+ position: absolute;
16525
+ width: 1px;
16526
+ height: 1px;
16527
+ margin: -1px;
16528
+ overflow: hidden;
16529
+ clip: rect(0, 0, 0, 0);
16530
+ white-space: nowrap;
16531
+ }
16532
+ .emblem {
16533
+ display: flex;
16534
+ align-items: center;
16535
+ justify-content: center;
16536
+ }
16537
+ .tile {
16538
+ display: grid;
16539
+ flex: none;
16540
+ place-items: center;
16541
+ width: 3rem;
16542
+ height: 3rem;
16543
+ color: var(--foreground);
16544
+ background: var(--card);
16545
+ border: 1px solid var(--border);
16546
+ border-radius: 0.875rem;
16547
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 16px -8px rgb(0 0 0 / 0.14);
16548
+ }
16549
+ .tile svg { width: 1.375rem; height: 1.375rem; }
16550
+ .tile-account {
16551
+ color: var(--primary-foreground);
16552
+ background: var(--primary);
16553
+ border-color: var(--primary);
16554
+ font-size: 0.9375rem;
16555
+ font-weight: 600;
16556
+ letter-spacing: 0.02em;
16557
+ }
16558
+ .link {
16559
+ position: relative;
16560
+ width: 4rem;
16561
+ height: 1px;
16562
+ margin: 0 0.5rem;
16563
+ background: linear-gradient(to right, var(--line) 50%, transparent 0) 50% 0 / 6px 1px repeat-x;
16564
+ }
16565
+ .emblem-waiting .link::after {
16566
+ content: "";
16567
+ position: absolute;
16568
+ top: 50%;
16569
+ left: 0;
16570
+ width: 5px;
16571
+ height: 5px;
16572
+ margin: -2.5px 0 0 -2.5px;
16573
+ background: var(--foreground);
16574
+ border-radius: 50%;
16575
+ animation: travel 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
16576
+ }
16577
+ .emblem-approved .link { background: var(--success); }
16578
+ .badge {
16579
+ position: absolute;
16580
+ top: 50%;
16581
+ left: 50%;
16582
+ display: grid;
16583
+ place-items: center;
16584
+ width: 1.5rem;
16585
+ height: 1.5rem;
16586
+ margin: -0.75rem 0 0 -0.75rem;
16587
+ border-radius: 50%;
16588
+ box-shadow: 0 0 0 4px var(--background);
16589
+ animation: pop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
16590
+ }
16591
+ .badge svg { width: 0.875rem; height: 0.875rem; stroke-width: 3; }
16592
+ .badge path {
16593
+ stroke-dasharray: 24;
16594
+ stroke-dashoffset: 24;
16595
+ animation: draw 0.35s 0.4s ease-out forwards;
16596
+ }
16597
+ .emblem-approved .badge { color: #ffffff; background: var(--success); }
16598
+ .emblem-denied .badge {
16599
+ color: var(--muted-foreground);
16600
+ background: var(--muted);
16601
+ box-shadow: 0 0 0 4px var(--background), inset 0 0 0 1px var(--border);
16602
+ }
16603
+ .code {
16604
+ display: grid;
16605
+ grid-template-columns: repeat(4, 1fr) 0.75rem repeat(4, 1fr);
16606
+ gap: 0.25rem;
16607
+ margin-top: 1.5rem;
16608
+ }
16609
+ .code span {
16610
+ display: grid;
16611
+ place-items: center;
16612
+ height: 2.75rem;
16613
+ font-family: "SF Mono", "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
16614
+ font-size: 1.125rem;
16615
+ font-weight: 500;
16616
+ background: var(--card);
16617
+ border: 1px solid var(--border);
16618
+ border-radius: calc(var(--radius) - 2px);
16619
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
16620
+ }
16621
+ .code .code-dash {
16622
+ align-self: center;
16623
+ height: 2px;
16624
+ background: var(--border);
16625
+ border: 0;
16626
+ border-radius: 1px;
16627
+ box-shadow: none;
16628
+ }
16629
+ .hint { margin-top: 0.875rem; font-size: 0.8125rem; }
16630
+ .details {
16631
+ margin: 1.5rem 0 0;
16632
+ padding: 0 0.875rem;
16633
+ text-align: left;
16634
+ font-size: 0.8125rem;
16635
+ background: var(--card);
16636
+ border: 1px solid var(--border);
16637
+ border-radius: var(--radius);
16638
+ }
16639
+ .details div {
16640
+ display: flex;
16641
+ justify-content: space-between;
16642
+ gap: 1rem;
16643
+ padding: 0.625rem 0;
16644
+ }
16645
+ .details div + div { border-top: 1px solid var(--border); }
16646
+ .details dt { flex: none; color: var(--muted-foreground); }
16647
+ .details dd {
16648
+ min-width: 0;
16649
+ margin: 0;
16650
+ overflow: hidden;
16651
+ font-weight: 500;
16652
+ text-overflow: ellipsis;
16653
+ white-space: nowrap;
16654
+ }
16655
+ .device form { margin-top: 1.5rem; }
16656
+ .device input.code-input {
16657
+ height: 3rem;
16658
+ font-family: "SF Mono", "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
16659
+ font-size: 1.25rem;
16660
+ font-weight: 500;
16661
+ text-align: center;
16662
+ /* Letter spacing trails the last character; the indent balances it. */
16663
+ text-indent: 0.2em;
16664
+ letter-spacing: 0.2em;
16665
+ text-transform: uppercase;
16666
+ }
16667
+ .device input.code-input::placeholder {
16668
+ color: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
16669
+ }
16670
+ .actions {
16671
+ display: grid;
16672
+ grid-template-columns: 1fr 1fr;
16673
+ gap: 0.5rem;
16674
+ }
16675
+ .actions button { margin-top: 0; }
16676
+ .button {
16677
+ display: flex;
16678
+ align-items: center;
16679
+ justify-content: center;
16680
+ height: 2.5rem;
16681
+ margin-top: 1.5rem;
16682
+ font-size: 0.875rem;
16683
+ font-weight: 500;
16684
+ color: var(--primary-foreground);
16685
+ text-decoration: none;
16686
+ background: var(--primary);
16687
+ border-radius: calc(var(--radius) - 2px);
16688
+ }
16689
+ .button:hover { opacity: 0.9; }
16690
+ .button:focus-visible {
16691
+ outline: 2px solid var(--ring);
16692
+ outline-offset: 2px;
16693
+ }
16694
+ .device button,
16695
+ .button { transition: opacity 0.15s, background-color 0.15s, transform 0.1s; }
16696
+ .device button:active,
16697
+ .button:active { transform: scale(0.98); }
16698
+ .secondary {
16699
+ color: var(--foreground);
16700
+ background: var(--card);
16701
+ border: 1px solid var(--border);
16702
+ }
16703
+ .secondary:hover:not(:disabled) { opacity: 1; background: var(--muted); }
16704
+ .footnote { margin-top: 1.25rem; font-size: 0.75rem; }
16705
+ .status {
16706
+ display: flex;
16707
+ align-items: center;
16708
+ justify-content: center;
16709
+ gap: 0.5rem;
16710
+ margin-top: 1.25rem;
16711
+ font-size: 0.8125rem;
16712
+ }
16713
+ .status::before {
16714
+ content: "";
16715
+ width: 0.375rem;
16716
+ height: 0.375rem;
16717
+ background: currentColor;
16718
+ border-radius: 50%;
16719
+ animation: pulse 2s ease-in-out infinite;
16720
+ }
16721
+ @keyframes travel {
16722
+ 0% { opacity: 0; transform: translateX(0); }
16723
+ 20%, 80% { opacity: 1; }
16724
+ 100% { opacity: 0; transform: translateX(4rem); }
16725
+ }
16726
+ @keyframes pop {
16727
+ from { opacity: 0; transform: scale(0.4); }
16728
+ to { opacity: 1; transform: scale(1); }
16729
+ }
16730
+ @keyframes draw { to { stroke-dashoffset: 0; } }
16731
+ @keyframes pulse { 50% { opacity: 0.3; } }
16732
+ @media (prefers-reduced-motion: reduce) {
16733
+ .emblem-waiting .link::after { display: none; }
16734
+ .badge,
16735
+ .badge path,
16736
+ .status::before { animation: none; }
16737
+ .badge path { stroke-dashoffset: 0; }
16738
+ }
16739
+ </style>`;
16427
16740
  function authPageDocument(body, title = "Sign in", head = "") {
16428
16741
  return [
16429
16742
  "<!doctype html>",
@@ -16432,8 +16745,8 @@ function authPageDocument(body, title = "Sign in", head = "") {
16432
16745
  '<meta charset="utf-8">',
16433
16746
  '<meta name="viewport" content="width=device-width, initial-scale=1">',
16434
16747
  `<title>${escapeHtml(title)}</title>`,
16435
- head,
16436
16748
  AUTH_PAGE_STYLE,
16749
+ head,
16437
16750
  "</head>",
16438
16751
  "<body>",
16439
16752
  '<main class="shell">',
@@ -18451,4 +18764,4 @@ export {
18451
18764
  createSixbServer
18452
18765
  };
18453
18766
 
18454
- //# debugId=0F67BE915C7C3AAC64756E2164756E21
18767
+ //# debugId=4C032B4AA5D609BC64756E2164756E21