Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit a5f4e20

Browse files
sebadoomsicarul
authored andcommitted
Remove 'allowedConnections' from Lock setup. This makes it easier for users to deploy the project, and can be setup through the Auth0 dashboard.
Update Lock version to latest.
1 parent 0f24503 commit a5f4e20

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

views/index.pug

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends layout
22

33
block content
4-
script(src="https://cdn.auth0.com/js/lock/10.4/lock.min.js")
4+
script(src="https://cdn.auth0.com/js/lock/10.7.2/lock.min.js")
55

66
h1= title
77
p Welcome to #{title}
@@ -16,8 +16,7 @@ block content
1616
scope: 'openid profile' // Learn about scopes: https://auth0.com/docs/scopes
1717
},
1818
closable: false,
19-
autofocus: true,
20-
allowedConnections: ['auth0.com']
19+
autofocus: true
2120
}
2221
});
2322
lock.show();

views/login.pug

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends layout
22

33
block content
4-
script(src="https://cdn.auth0.com/js/lock/10.4/lock.min.js")
4+
script(src="https://cdn.auth0.com/js/lock/10.7.2/lock.min.js")
55

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

@@ -15,8 +15,7 @@ block content
1515
}
1616
},
1717
closable: false,
18-
autofocus: true,
19-
allowedConnections: ['auth0.com']
18+
autofocus: true
2019
}
2120
);
2221
lock.show();

0 commit comments

Comments
 (0)