Auth0 Lock in incognito

Hello, I am using auth0-lock with the following configuration

 const clientId = process.env.REACT_APP_AUTH0_CLINET_ID;
 const domain = "***-******"
 const options = {
     allowShowPassword: true,
     closable: false,
     allowSignUp: true,
     rememberLastLogin: false,
     languageDictionary: {
         title: 'Sign in',
         loginLabel: 'Sign In',
         loginSubmitLabel: 'Sign In',
         forgotPasswordAction: "Can't Sign in? Click here",
      auth: {
         redirect: false,
         redirectUrl: window.location.origin,
         responseType: 'token id_token',
         rememberLastLogin: false,
      theme: {
          logo: '',
          primaryColor: '#0077d3',
 const lock = new Auth0Lock(clientId, domain, options);
 lock.on('authenticated', (authResult) => {
 lock.getUserInfo(authResult.accessToken, (error, profile) => {
       if (error) return;
       localStorage.setItem('accessToken', JSON.stringify(authResult));
      localStorage.setItem('profile', JSON.stringify(profile));

It works fine when I try to log in, signup on the normal browser but It’s failed on incognito.

After searching a lot, I saw that the cookies are blocked in incognito.

Is there any way to allow it by default?

The fix for it is to use custom domains.

1 Like

Thanks for sharing that with the rest of community!