Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

301
Visualizações
Auth0 Lock not adjusting using Configuration Options

I use auth0 in combination with the Lock widget to create a login page with a simple username/password authentication page. The page is built in NodeJS, running on a Ubuntu server on port 3000. Everything works fine.

I want to customize the login page with some extra options, for example using my own logo, instead of the auth0 logo provided in the widget. However, when running this Node JS application, nothing changes...

My views/index.pug file looks as follows:

extends layout

block content
  script(src="https://cdn.auth0.com/js/lock/10.7.2/lock.min.js")

  h1= title
  p Welcome to #{title}
  br

  script.
    var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}', {
      auth: {
        redirectUrl: '#{env.AUTH0_CALLBACK_URL}',
        responseType: 'code',
        params: {
          scope: 'openid profile' // Learn about scopes: https://auth0.com/docs/scopes
        },
        closable: false,
        autofocus: true
      },
      theme: {
        logo: 'http://www.example.com/content/logo.png'
      }
    });
    lock.show();

Where stuff like #{env.AUTH0_CLIENT_ID} is coming from a local file.

All files are also available in this Github repo.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You need to edit the views/login.pug file, rather than the views/index.pug file.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda