Default Template when Using Page Templates

Overview

A default template is desired to allow customizations to be added using the nonpage templated version of the Universal Login prompt. When attempting to retrieve the default login template using the API endpoint api/v2/branding/templates/universal-login, the following error message occurs:

Template does not exist.

Solution

Technically, there is no default template, as configuring a page template changes how the Universal Login page is rendered.

Use this template as a starting point instead:

<!DOCTYPE html>
<html lang="{{locale}}">
  <head>
    {%- auth0:head -%}
  <title>{{ prompt.screen.texts.pageTitle }}</title>
  </head>
  <body class="_widget-auto-layout">
    {%- auth0:widget -%}
  </body>
</html>

Related References

  • For more details on the customization options available in Page templates, please see this document .