auth0 Lock Connection

JS
S
JavaScript

auth0 Lock snippet for both token and id_token retrieval.

1  auth0Options = {
2    auth: {
3      responseType: 'token id_token',
4      audience: 'blah',
5      redirectUri: 'blah',
6      scope: 'openid',
7    },
8    autoclose: true,
9    oidcConformant: true,
10  };
11
12  // Initializing our Auth0Lock
13  lock = new Auth0Lock(
14    'your clientId',
15    'your domain',
16    this.auth0Options
17  );

Created on 11/9/2018