extends layout

block content
  
  h3 Auth0 <strong>passport-auth0-oidc</strong> sample
  br
  button.btn.btn-primary(onclick="signin()") Login

block script
  script(src='https://cdn.auth0.com/js/lock/11.0.0-beta.1/lock.min.js')
  script.
    
    function signin() {    
      var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}', {
        auth: {
          redirectUrl: '#{env.AUTH0_CALLBACK_URL}',
          responseType: 'code',
          params: {
            scope: 'openid'
          }
        }
      });

      lock.show();
    }

extends layout

block content
  
  h3 Auth0 <strong>passport-auth0-oidc</strong> sample
  br
  button.btn.btn-primary(onclick="signin()") Login

block script
  script(src='https://cdn.auth0.com/js/lock/11.0.0/lock.min.js')
  script.
    
    function signin() {    
      var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}', {
        auth: {
          redirectUrl: '#{env.AUTH0_CALLBACK_URL}',
          responseType: 'code',
          params: {
            scope: 'openid'
          }
        }
      });

      lock.show();
    }

Update to use the released version of Lock 11
Update to use the released version of Lock 11