# Is there any possibility to resolved the access denied error after login

**URL:** <https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [October 9, 2023, 7:38am UTC](https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081 "2023-10-09T07:38:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MWA35](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@MWA35](https://community.auth0.com/u/MWA35)\
**Post date:** [October 9, 2023, 7:38am UTC](https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081/1 "2023-10-09T07:38:38Z")

</div>

Hi guys, I am facing an “access\_denied” error after login. Is any possible solution to overcome this error?. Here is my flow of login:  
a) When I try to login with useRedirect webHook of auth0 , after putting credentials and click to submit/login  
b) Then I called an action in the dashboard where I put some code for my requirement and calling the API request by doing with Axios.  
Note: This error is not persistent but occur sometimes , so I am get stuck , How I can resolve this.?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 9, 2023, 5:26pm UTC](https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081/2 "2023-10-09T17:26:04Z")

</div>

Hi @MWA35,

It sounds to me like your Post-Login Action script is preventing you from logging in.

There is likely a piece of code calling the [`api.access.deny()`](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/api-object#:~:text=api.access.deny(reason)) method in your script, which is responsible for the error you observed.

You can verify this by checking your failed login logs and seeing the details involving your access denied error.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![MWA35](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@MWA35](https://community.auth0.com/u/MWA35)\
**Post date:** [October 11, 2023, 10:56am UTC](https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081/3 "2023-10-11T10:56:48Z")

</div>

Thanks for the reply @rueben.tiow. I have go through in my action logic, now the issue has been resolved.

---

<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 25, 2023, 10:56am UTC](https://community.auth0.com/t/is-there-any-possibility-to-resolved-the-access-denied-error-after-login/118081/4 "2023-10-25T10:56:55Z")

</div>

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