Last active
June 14, 2018 09:01
-
-
Save vdelacou/31a8ebab72d289cefafc51090619bba1 to your computer and use it in GitHub Desktop.
Create class for instance of auth0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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