5de476ae04b880d2d94e6e3b1bd3db359aee2095
3 const { TemplateHelper: th
} = require('@squeep/html-template-helper');
9 function mainContent() {
12 \t<a href="./login">Try Again?</a>
18 * Render any errors from attempting IndieAuth.
20 * @param {String[]} ctx.errors
21 * @param {Object} options
22 * @param {Object} options.manager
23 * @param {String} options.manager.pageTitle
24 * @param {Object} options.dingus
25 * @param {String} options.dingus.selfBaseUrl
28 module
.exports
= (ctx
, options
) => {
30 pageTitle: options
.manager
.pageTitle
,
31 logoUrl: options
.manager
.logoUrl
,
32 footerEntries: options
.manager
.footerEntries
,
34 '<p>Problems were encountered while trying to authenticate your profile URL.</p>',
37 // Ensure there is always an error to report, even if we do not have one, as we ended up here somehow.
38 if (!ctx
?.errors
?.length
) {
40 'Unknown Error — we are not sure what just happened',
43 return th
.htmlPage(2, ctx
, htmlOptions
, mainContent());