Skip to content

Commit

Permalink
Merge pull request #115 from Amialc/lock_10
Browse files Browse the repository at this point in the history
lock v 10 update
  • Loading branch information
jeffreylees committed Jul 21, 2016
2 parents aa103da + e5a5699 commit 18a9319
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
14 changes: 7 additions & 7 deletions examples/nodejs-regular-webapp/views/index.jade
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
extends layout

block content
script(src="https://cdn.auth0.com/js/lock-9.0.js")
script(src="https://cdn.auth0.com/js/lock/10.0/lock.min.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}'
var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '#{env.AUTH0_DOMAIN}', { auth: {
redirectUrl: '#{env.AUTH0_CALLBACK_URL}'
, responseType: 'code'
, authParams: {
, params: {
scope: 'openid name email picture'
}
});
}});
function signin() {
lock.show();
}


19 changes: 9 additions & 10 deletions examples/nodejs-regular-webapp/views/login.jade
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
extends layout

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

div(id="root" style="width: 280px; margin: 40px auto; padding: 10px;")

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


0 comments on commit 18a9319

Please sign in to comment.