update depedencies, changes to support updated authentication-module
[squeep-indie-auther] / src / template / authorization-error-html.js
index ee2e4f207874775563fa78a6b99404fcf8e24402..16e3c4870bdb300d9ef031d55a628e40d2f2f205 100644 (file)
@@ -1,7 +1,7 @@
 'use strict';
 
 const th = require('./template-helper');
-
+const { sessionNavLinks } = require('@squeep/authentication-module');
 
 /**
  * 
@@ -16,11 +16,15 @@ const th = require('./template-helper');
  * @returns {String}
  */
 module.exports = (ctx, options) => {
+  const pagePathLevel = 0;
   const htmlOptions = {
+    pageIdentifier: 'authorizationError',
     pageTitle: options.manager.pageTitle,
     logoUrl: options.manager.logoUrl,
     footerEntries: options.manager.footerEntries,
     errorContent: ctx.errorContent || ['Unknown Error'],
   };
-  return th.htmlPage(0, ctx, htmlOptions, []);
+  th.navLinks(pagePathLevel, ctx, htmlOptions);
+  sessionNavLinks(pagePathLevel, ctx, htmlOptions);
+  return th.htmlPage(pagePathLevel, ctx, htmlOptions, []);
 };
\ No newline at end of file