Skip to content

Instantly share code, notes, and snippets.

@ilovelili
Created March 9, 2021 15:24
Show Gist options
  • Save ilovelili/1e652eb93e52c274ff6373a39db302e0 to your computer and use it in GitHub Desktop.
Save ilovelili/1e652eb93e52c274ff6373a39db302e0 to your computer and use it in GitHub Desktop.
options = {
closable: true,
autoclose: true,
auth: {
redirectUrl: 'http://localhost:3000',
responseType: 'id_token',
params: {
scope: 'openid profile email', // could you check here?
language: 'en',
},
},
};
lock = new Auth0Lock(
environment.auth.clientID,
environment.auth.domain,
this.options
);
auth0 = new auth0.WebAuth({
clientID: environment.auth.clientID,
domain: environment.auth.domain,
responseType: 'id_token',
redirectUri: environment.auth.redirect,
scope: environment.auth.scope,
screen_hint: 'signup',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment