# We are experiencing random user disconnection

**URL:** <https://community.auth0.com/t/we-are-experiencing-random-user-disconnection/81144>\
**Category:** Get Help\
**Created:** [April 5, 2022, 11:38am UTC](https://community.auth0.com/t/we-are-experiencing-random-user-disconnection/81144 "2022-04-05T11:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguel.hernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/miguel.hernandez/32/36384_2.png) [@miguel.hernandez](https://community.auth0.com/u/miguel.hernandez)\
**Post date:** [April 5, 2022, 11:38am UTC](https://community.auth0.com/t/we-are-experiencing-random-user-disconnection/81144/1 "2022-04-05T11:38:46Z")

</div>

We’re experiencing some random disconnections in the process for `Exchange of Refresh Token for Access Token`.

This is the error that we found in the log:

````auto
  "date": "2022-04-05T10:17:01.087Z",
  "type": "fertft",
  "description": "Cannot read property 'scope' of undefined",
  "connection_id": "",
  "client_id": "XXXXXXXXXXXXXXXX",
  "client_name": "App",
  "ip": "xxx.xxx.xxx.xxx",
  "user_agent": "Company 4515.0.0 / Other 0.0.0",
  "hostname": "xxxxx.eu.auth0.com",
  "user_id": "",
  "user_name": "",
  "auth0_client": {
    "name": "react-native-auth0",
    "version": "2.1.0"
  },
  "log_id": "XXXXXXXXXX",
  "_id": "XXXXXXXXXXXX",
  "isMobile": false
}```

Any ideas?
````

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 5, 2022, 4:29pm UTC](https://community.auth0.com/t/we-are-experiencing-random-user-disconnection/81144/4 "2022-04-05T16:29:40Z")

</div>

Hi @miguel.hernandez ,

Welcome to the Auth0 Community!

I checked your tenant and noticed in the rule “Basic Scope Verification”,

`const requestedScopes = context.request.body.scope || context.request.query.scope || '';`

Do you want to try updating it as below and check the log again?

`var requestedScopes = context.request.body.scope || (context.request.query && context.request.query.scope) || null;`

---

<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:** [December 21, 2022, 5:12pm UTC](https://community.auth0.com/t/we-are-experiencing-random-user-disconnection/81144/5 "2022-12-21T17:12:53Z")

</div>


