# Receiving error 'Cannot read property applications of undefined' after Login

**URL:** <https://community.auth0.com/t/receiving-error-cannot-read-property-applications-of-undefined-after-login/47192>\
**Category:** Get Help\
**Created:** [July 30, 2020, 12:09pm UTC](https://community.auth0.com/t/receiving-error-cannot-read-property-applications-of-undefined-after-login/47192 "2020-07-30T12:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgogia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgogia/32/14722_2.png) [@jgogia](https://community.auth0.com/u/jgogia)\
**Post date:** [July 30, 2020, 12:09pm UTC](https://community.auth0.com/t/receiving-error-cannot-read-property-applications-of-undefined-after-login/47192/1 "2020-07-30T12:09:15Z")

</div>

We have a SPA application in Angular 9 and .net core Web API that is secured using Auth0 API authentication and also uses role based authentication. When the user logs in, then after login it returns the error - ‘Cannot read property applications of undefined’ after Login. Please let me know what could be the issue

The exact Url redirected to is:  
[https://localhost:4200/drugs?error=access\_denied&error\_description=Cannot%20read%20property%20'applications'%20of%20undefined&state=g6Fo2SBZNnNUckhUOUI1NXNnSERLc1g2ODNrcThGODNuYzBVb6N0aWTZIGM1bjlXaTNFeU9kamZlTTFUSlFKS3Rqa096RWZXbnRJo2NpZNkgWGRGZ0MyOVU3dWJmVGpSWUo2OVd4UVdtZGp6RlF0S0E](https://localhost:4200/drugs?error=access_denied&error_description=Cannot%20read%20property%20%27applications%27%20of%20undefined&state=g6Fo2SBZNnNUckhUOUI1NXNnSERLc1g2ODNrcThGODNuYzBVb6N0aWTZIGM1bjlXaTNFeU9kamZlTTFUSlFKS3Rqa096RWZXbnRJo2NpZNkgWGRGZ0MyOVU3dWJmVGpSWUo2OVd4UVdtZGp6RlF0S0E)

---

<div class="post-metadata">

**Author:** ![thomas.osborn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thomas.osborn/32/22282_2.png) [@thomas.osborn](https://community.auth0.com/u/thomas.osborn)\
**Post date:** [July 30, 2020, 9:11pm UTC](https://community.auth0.com/t/receiving-error-cannot-read-property-applications-of-undefined-after-login/47192/2 "2020-07-30T21:11:24Z")

</div>

Hi @jgogia and welcome to the community 👋

That is a JavaScript error. It is from calling something like “object.applications” when object is undefined. You should search through any rules or hooks or custom DB scripts you have to find where the applications property is being called on something undefined.

---

<div class="post-metadata">

**Author:** ![jgogia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgogia/32/14722_2.png) [@jgogia](https://community.auth0.com/u/jgogia)\
**Post date:** [July 31, 2020, 5:53am UTC](https://community.auth0.com/t/receiving-error-cannot-read-property-applications-of-undefined-after-login/47192/3 "2020-07-31T05:53:04Z")

</div>

Hi @thomas,

I also receive the error [object object], when I send the request through postman. I have attached the screen shot of parameters I am sending through postman.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/a/eafbaefbc485f64512380d0453daf8b4d1f6b6de.png)
