# Auth0 Lock in incognito

**URL:** <https://community.auth0.com/t/auth0-lock-in-incognito/58267>\
**Category:** Get Help\
**Tags:** auth0-lock, lock, login, auth0\
**Created:** [February 22, 2021, 1:08pm UTC](https://community.auth0.com/t/auth0-lock-in-incognito/58267 "2021-02-22T13:08:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hossam.ali](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hossam.ali/32/27753_2.png) [@hossam.ali](https://community.auth0.com/u/hossam.ali)\
**Post date:** [February 22, 2021, 1:08pm UTC](https://community.auth0.com/t/auth0-lock-in-incognito/58267/1 "2021-02-22T13:08:36Z")

</div>

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

```
 const clientId = process.env.REACT_APP_AUTH0_CLINET_ID;
 const domain = " ***-******.us.auth0.com"
 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));
      window.location.replace('/');
   });
});

```

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.

 ![Screen Shot 2021-02-22 at 3.06.47 PM](https://global.discourse-cdn.com/auth0/original/3X/d/5/d5b81282668331ec025e5951220ec9cd75ad724e.jpeg)

Is there any way to allow it by default?

---

<div class="post-metadata">

**Author:** ![hossam.ali](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hossam.ali/32/27753_2.png) [@hossam.ali](https://community.auth0.com/u/hossam.ali)\
**Post date:** [February 22, 2021, 4:39pm UTC](https://community.auth0.com/t/auth0-lock-in-incognito/58267/2 "2021-02-22T16:39:42Z")

</div>

The fix for it is to use custom domains.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 23, 2021, 3:00pm UTC](https://community.auth0.com/t/auth0-lock-in-incognito/58267/3 "2021-02-23T15:00:55Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 10:22am UTC](https://community.auth0.com/t/auth0-lock-in-incognito/58267/4 "2021-02-25T10:22:43Z")

</div>


