File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,16 @@ The full code sample for both the SPA applications as well as the normal web app
83
83
document .body .style .display = ' none' ;
84
84
85
85
// instantiate Lock
86
- var lock = new Auth0Lock (' ' ${account .clientId }' , ' ' ${account.namespace}' );
86
+ var lock = new Auth0Lock (' ${account.clientId}' , ' ${account.namespace}' , {
87
+ auth: {
88
+ params: {
89
+ scope: ' openid name picture'
90
+ }
91
+ }
92
+ });
87
93
var auth0 = new Auth0 ({
88
- domain: ' ' ${account .namespace }' ,
89
- clientID: ' ' ${account.clientId}' ,
94
+ domain: ' ${account.namespace}' ,
95
+ clientID: ' ${account.clientId}' ,
90
96
callbackOnLocationHash: true
91
97
});
92
98
@@ -139,13 +145,7 @@ The full code sample for both the SPA applications as well as the normal web app
139
145
// Showing Login
140
146
$ (' .btn-login' ).click (function (e ) {
141
147
e .preventDefault ();
142
- lock .show ({
143
- auth: {
144
- params: {
145
- scope: ' openid name picture'
146
- }
147
- }
148
- });
148
+ lock .show ();
149
149
});
150
150
151
151
</script >
You can’t perform that action at this time.
0 commit comments