MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / defaultHtmlContent

Function defaultHtmlContent

pages/oidc/callback.ts:39–62  ·  view source on GitHub ↗
({ error }: { error: string })

Source from the content-addressed store, hash-verified

37}
38
39function defaultHtmlContent({ error }: { error: string }) {
40 return html`
41 <main id="main">
42 <section class="max-w-3xl mx-auto flex flex-col items-center justify-center">
43 <h1 class="text-4xl mb-6">
44 Login with SSO
45 </h1>
46 ${error
47 ? html`
48 <section class="notification-error">
49 <h3>Failed to login!</h3>
50 <p>${escapeHtml(error)}</p>
51 </section>
52 `
53 : ''}
54
55 <h2 class="text-2xl mb-4 text-center">Go back?</h2>
56 <p class="text-center mt-2 mb-6">
57 Go back to <strong><a href="/login">login</a></strong>.
58 </p>
59 </section>
60 </main>
61 `;
62}
63
64export default page({
65 get,

Callers 1

getFunction · 0.70

Calls 1

escapeHtmlFunction · 0.90

Tested by

no test coverage detected