extends layout

block content
  script(src="https://cdn.auth0.com/js/lock-8.2.js")
  
  h1= title
  p Welcome to #{title}
  br
  button(onclick="signin()") Login

  script.
    var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}');
    function signin() {
      lock.show({
          callbackURL: '#{env.AUTH0_CALLBACK_URL}'
        , responseType: 'code'
        , authParams: {
          scope: 'openid name email picture'
        }
      });
    }

  

extends layout

block content
  script(src="https://cdn.auth0.com/js/lock-9.0.js")
  
  h1= title
  p Welcome to #{title}
  br
  button(onclick="signin()") Login

  script.
    var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}');
    function signin() {
      lock.show({
          callbackURL: '#{env.AUTH0_CALLBACK_URL}'
        , responseType: 'code'
        , authParams: {
          scope: 'openid name email picture'
        }
      });
    }

  

Update lock to version 9
Update lock to version 9