this link is for a specific account
it was shared with ${escapeHtml(audienceDid)}. sign in with that account to open it.
import { PRIVATE_SHARE_QUERY_PARAM } from '@wispplace/constants' import { normalizeSitePath } from '@wispplace/fs-utils' import { createLogger } from '@wispplace/observability' import { buildPrivateStorageKey, buildSessionCookie, countCookieOccurrences, type GeneratedSecret, generateRecordId, generateSessionSecret, hashSecret, hashShareTokenSync, isValidSiteId, PRIVATE_ACCESS_PAGE_STYLES, PRIVATE_GRANT_QUERY_PARAM, PRIVATE_SESSION_TTL_MINUTES, parseCookieHeader, privateFormResponseHeaders, privateResponseHeaders, sessionCookieName, } from '@wispplace/private-sites' import { lookup } from 'mime-types' import { type AuthorizedPrivateSite, exchangePrivateHandoff, exchangePrivateShareToken, loadAuthorizedPrivateSite, type PrivateSiteFile, touchShare, } from './private-sites-db' import { privateStorage } from './storage' const logger = createLogger('hosting-service') const INDEX_FILES = ['index.html', 'index.htm'] const isSecureRequest = (request: Request): boolean => { if (request.headers.get('x-forwarded-proto') === 'https') return true try { return new URL(request.url).protocol === 'https:' } catch { return false } } const mainAppOrigin = (): string => { const configured = process.env.MAIN_APP_URL || process.env.DOMAIN if (configured) return configured.replace(/\/+$/, '') const base = (process.env.BASE_HOST || 'wisp.place').split(':')[0] return `https://${base}` } const privatePageHead = (title: string): string => `
it was shared with ${escapeHtml(audienceDid)}. sign in with that account to open it.
access required
this address needs a share link, or an account with access to it.