Default Template when Using Page Templates


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.


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}}">
    {%- auth0:head -%}
  <title>{{ prompt.screen.texts.pageTitle }}</title>
  <body class="_widget-auto-layout">
    {%- auth0:widget -%}

Related References

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