Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this.auth0 = new auth0.WebAuth({
domain,
clientID,
redirectUri: `${
typeof window !== 'undefined' ? window.location.origin : ''
}/auth-callback`,
audience: `https://${domain}/api/v2/`,
responseType: 'token id_token',
scope: `openid profile email ${namespace + 'accountLinkId'}`
});
this.getUser = this.getUser.bind(this);
this.getToken = this.getToken.bind(this);
this.handleAuthentication = this.handleAuthentication.bind(this);
this.isAuthenticated = this.isAuthenticated.bind(this);
this.login = this.login.bind(this);
this.logout = this.logout.bind(this);