# Access\_denied error

**URL:** <https://community.auth0.com/t/access-denied-error/125513>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [January 23, 2024, 10:42pm UTC](https://community.auth0.com/t/access-denied-error/125513 "2024-01-23T22:42:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joekgilberto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joekgilberto/32/54188_2.png) [@joekgilberto](https://community.auth0.com/u/joekgilberto)\
**Post date:** [January 23, 2024, 10:42pm UTC](https://community.auth0.com/t/access-denied-error/125513/1 "2024-01-23T22:42:44Z")

</div>

Hello! I keep getting this error when I try to log in. I can’t seem to find out what the problem is, especially since I haven’t touched anything in Auth0 that should correlate with this error. I’ve reinstalled auth0 and atuh0-react multiple times in my React app. Any direction would be appreciated.

```auto
{
  "error": "access_denied",
  "error_description": "Cannot find module 'auth0@2.30.0'\nRequire stack:\n- /data/io/node18/0297be34-deac-43cc-a107-429ddb3e91cc/webtask.js"
}

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 23, 2024, 11:02pm UTC](https://community.auth0.com/t/access-denied-error/125513/3 "2024-01-23T23:02:47Z")

</div>

Hey there @joekgilberto welcome to the community!

Do you by chance have any Rules or Actions configured in your tenant?

[https://community.auth0.com/t/failed-login-with-error-cannot-find-module/88777](https://community.auth0.com/t/failed-login-with-error-cannot-find-module/88777)

---

<div class="post-metadata">

**Author:** ![joekgilberto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joekgilberto/32/54188_2.png) [@joekgilberto](https://community.auth0.com/u/joekgilberto)\
**Post date:** [January 23, 2024, 11:20pm UTC](https://community.auth0.com/t/access-denied-error/125513/4 "2024-01-23T23:20:41Z")

</div>

Hello! Thank you so much for replying. I tried adding an Action (I am new to Rules and Actions, this is my first time trying it) like below:

 ![Screenshot 2024-01-23 at 6.19.35 PM](https://global.discourse-cdn.com/auth0/original/3X/7/1/718512c18b29cdf5d8bde0c86b03a3c787f0475c.png)

And got this error:

```auto
{
  "date": "2024-01-23T23:18:16.332Z",
  "type": "f",
  "description": "Cannot find module 'auth0@2.30.0'\nRequire stack:\n- /data/io/node18/0995e292-dfea-47bd-9d72-b25757eee713/webtask.js",
  "connection_id": "",
  "client_id": "CLIENTID",
  "client_name": "Blu-Rave",
  "ip": "108.49.113.153",
  "user_agent": "Chrome 121.0.0 / Mac OS X 10.15.7",
  "details": {
    "body": {},
    "qs": {
      "client_id": "CLIENTID",
      "scope": "openid profile email read:blu-rays",
      "redirect_uri": "http://localhost:3000",
      "audience": "http://localhost:3000/",
      "response_type": "code",
      "response_mode": "query",
      "state": "aTY5U09UTHV3bHFvSFZOa342dmg5VXdGY0JpZzZqTnlKS05DdTQ5dWNOag==",
      "nonce": "WTF6N3NCWjk2eURlcTNvUjFMZGJZWmNDMU1rYnF6TXF+SURSZTB0Q1FJUQ==",
      "code_challenge": "N_1kmEg5NpX71_raYy_BqIBQteK03OB904RyFulvh3o",
      "code_challenge_method": "S256",
      "auth0Client": "AUTH0CLIENT"
    },
    "error": {
      "message": "Cannot find module 'auth0@2.30.0'\nRequire stack:\n- /data/io/node18/0995e292-dfea-47bd-9d72-b25757eee713/webtask.js",
      "oauthError": "access_denied",
      "type": "oauth-authorization"
    },
    "session_id": "6SM5wv0J4YdzSBj3iXXk8NGnelGVIY4u",
    "stats": {
      "loginsCount": 45
    }
  },
  "hostname": "DOMAIN",
  "user_id": "USERID",
  "user_name": "joekgilberto@gmail.com",
  "audience": "http://localhost:3000/",
  "scope": [
   SCOPE
  ],
  "auth0_client": {
    "name": "auth0-react",
    "version": "2.2.4"
  },
  "log_id": "90020240123231816366906000000000000001223372044217668452",
  "_id": "90020240123231816366906000000000000001223372044217668452",
  "isMobile": false,
  "id": "90020240123231816366906000000000000001223372044217668452"
}

```

I tried to follow the instructions from your linked post but I can’t seem to make it work- any advice would be appreciated

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 24, 2024, 1:24am UTC](https://community.auth0.com/t/access-denied-error/125513/5 "2024-01-24T01:24:03Z")

</div>

Thanks for following up! I believe the issue is with using `auth0@2.30.0` and `node18` looking at  
[Can I Require](https://auth0-extensions.github.io/canirequire/#auth0) - I also noticed you have a Rule configured in your tenant called “Netlify Role Management” which is utilizing `auth0@2.30.0`. I would get rid of the Action entirely (assuming you don’t need it) and update the Rule in your tenant to use a newer version of [node-auth0](https://www.npmjs.com/package/auth0) (4.2.0 being current).

---

<div class="post-metadata">

**Author:** ![joekgilberto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joekgilberto/32/54188_2.png) [@joekgilberto](https://community.auth0.com/u/joekgilberto)\
**Post date:** [January 24, 2024, 3:19am UTC](https://community.auth0.com/t/access-denied-error/125513/6 "2024-01-24T03:19:41Z")

</div>

This was exactly it- didnt even realize I had this Rule! Thank you so much!!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 24, 2024, 4:07pm UTC](https://community.auth0.com/t/access-denied-error/125513/7 "2024-01-24T16:07:41Z")

</div>

Ahh OK good! Glad that was it 🙂 Thanks for confirming.

---

<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:** [February 7, 2024, 4:07pm UTC](https://community.auth0.com/t/access-denied-error/125513/8 "2024-02-07T16:07:50Z")

</div>

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