# Error login\_required when in incognito using auth0-js WebAuth

**URL:** <https://community.auth0.com/t/error-login-required-when-in-incognito-using-auth0-js-webauth/117529>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [October 1, 2023, 11:38pm UTC](https://community.auth0.com/t/error-login-required-when-in-incognito-using-auth0-js-webauth/117529 "2023-10-01T23:38:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a3h16](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@a3h16](https://community.auth0.com/u/a3h16)\
**Post date:** [October 1, 2023, 11:38pm UTC](https://community.auth0.com/t/error-login-required-when-in-incognito-using-auth0-js-webauth/117529/1 "2023-10-01T23:38:20Z")

</div>

when registering using auth0-js v9 new WebAuth in an incogntio window using google chrome, I am met with the login\_required error.

The registration is fine when in a non incognito tab so the audience, clientId and domain creds passed below we can presume correct.

```auto
new WebAuth({
      clientID,
      domain,
      audience,
      responseType: 'token id_token',
      redirectUri,
      scope: 'openid profile offline_access'
})

```

```auto
[WebAuth].authorize(
     {
        email,
        connection,
        authorizeCallType: "registration",
        redirectUri,
        state,
      },

```

I have also tried the suggested refresh token rotation and updated the following settings;  
The api access settings has Allow Offline Access toggled on and the application has its Refresh Token Rotation toggled on with a reuse interval of 30003

With these two enabled and offline\_access added to the scope (see above), I no longer get login\_required; however I get a missing\_refresh\_token error

How can I allow registration within an incognito tab?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 4, 2023, 6:21pm UTC](https://community.auth0.com/t/error-login-required-when-in-incognito-using-auth0-js-webauth/117529/3 "2023-10-04T18:21:36Z")

</div>

Hi @a3h16,

Refresh tokens aren’t supported in Auth0.js, so that approach wont help here.

Could you please DM me a HAR file of the request? I’d like to see the call that is being made and the response.

> **[Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files)**
>
> Learn how to troubleshoot with HAR files and steps to generate a HAR file.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 26, 2023, 2:24pm UTC](https://community.auth0.com/t/error-login-required-when-in-incognito-using-auth0-js-webauth/117529/4 "2023-10-26T14:24:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
