Skip to content

Instantly share code, notes, and snippets.

@vdelacou
Last active June 14, 2018 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdelacou/31a8ebab72d289cefafc51090619bba1 to your computer and use it in GitHub Desktop.
Save vdelacou/31a8ebab72d289cefafc51090619bba1 to your computer and use it in GitHub Desktop.
Create class for instance of auth0
import Auth0Lock from 'auth0-lock';
export default class Auth {
lock = new Auth0Lock(
'MVmsdXMGSS2JusuH82DeNAErxtoTmmir',
'seelix.eu.auth0.com',
{
auth:
{
audience: 'https://seelix-api.com',
redirect: false,
responseType: 'token',
params: {
scope: 'openid'
}
},
autoclose: true,
allowSignUp: false
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment