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.
Is there any way to allow it by default?