# Getting user$ as null and is isAuthenticated$ as false after successful login

**URL:** <https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [November 30, 2023, 11:07am UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035 "2023-11-30T11:07:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akash.dhiwar\_6](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@akash.dhiwar\_6](https://community.auth0.com/u/akash.dhiwar_6)\
**Post date:** [November 30, 2023, 11:07am UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/1 "2023-11-30T11:07:11Z")

</div>

hey can anyone help me out .  
im getting user object as null and isAuthenticated false after loggong in to application  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/2/f253d082522e97f5c9aaff988417f2d1f75a0ed2.png)

im using auth0 angular sdk .

can anyone tell whats the issue here

---

<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:** [December 1, 2023, 6:55pm UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/3 "2023-12-01T18:55:27Z")

</div>

Hi @akash.dhiwar_6,

Thanks for reaching out to the Auth0 Community!

Could you please check your [tenant logs](https://manage.auth0.com/#/logs) to see if there are any details about the login event and share that information with me?

In the meantime, it might be worth trying checking out the [Auth0 Angular SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/angular) as a reference.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![akash.dhiwar\_6](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@akash.dhiwar\_6](https://community.auth0.com/u/akash.dhiwar_6)\
**Post date:** [December 4, 2023, 4:15am UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/4 "2023-12-04T04:15:25Z")

</div>

hey @rueben.tiow ! thanks for the reply.

I looked into tenant logs here it is

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/1/61e915bef3b4e02806bbac440b90e1aed7149838.png)

The LOGIN EVENTS are successful but yet user$ and isAuthenticated$ are null and false.

And I’m following angular sdk quickstart as shown in docs , but still not able to see user details.

And also I’m not getting token after successful login. What can be the issue ???

facing this kind of issue

> [@No auth exchanges after successful login. Can also logout successfully](https://community.auth0.com/t/no-auth-exchanges-after-successful-login-can-also-logout-successfully/85247):
>
> Please include the following information in your post: Which SDK this is regarding: auth0/auth0-angular SDK Version: 1.10.0 Platform Version: Angular 13 Code Snippets/Error Messages/Supporting Details/Screenshots: See below Hello! Im attempting to implement auth0 into an existing angular13 project Ive been developing as a personal project. I was able to get this project [here](https://github.com/rodrigokamada/angular-auth0) working with my Auth0 single page application. I was also able to follow this [tutorial](https://auth0.com/docs/quickstart/spa/angular/interactive) and get it working in its own a…

you can refer this

---

<div class="post-metadata">

**Author:** ![akash.dhiwar\_6](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@akash.dhiwar\_6](https://community.auth0.com/u/akash.dhiwar_6)\
**Post date:** [December 6, 2023, 6:50am UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/5 "2023-12-06T06:50:01Z")

</div>

hey @rueben.tiow need solution for 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:** [December 6, 2023, 4:47pm UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/6 "2023-12-06T16:47:41Z")

</div>

Hi @akash.dhiwar_6,

Thanks for following up.

I have just downloaded the Angular Quickstart sample app and was able to successfully log in and the user is correctly authenticated.

In your logs, I do see that the user logged in successfully, but I do not see any successful exchange authorization code for an access token (type: seacft) logs.

This seems to be consistent with your statement that you are not getting the token after a successful login.

Typically, calling the `loginWithRedirect` method should initiate the login process and authenticate the user. After a successful login, Auth0 automatically handles the retrieval of tokens, like the Access token, as part of the authentication callback processing.

If you need the access token immediately after a successful login, you can use the `handleRedirectCallback` method to process the auth response and obtain tokens.

Could you please give it a try and let me know your findings?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![akash.dhiwar\_6](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@akash.dhiwar\_6](https://community.auth0.com/u/akash.dhiwar_6)\
**Post date:** [December 8, 2023, 4:35am UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/7 "2023-12-08T04:35:51Z")

</div>

hey @rueben.tiow thanks for the solution this worked for me. 😇

---

<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:** [December 8, 2023, 6:01pm UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/8 "2023-12-08T18:01:58Z")

</div>

Hi @akash.dhiwar_6,

I’m glad it worked!

Please let me know if there’s anything else I can do to help.

Thanks,  
Rueben

---

<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:** [December 22, 2023, 6:02pm UTC](https://community.auth0.com/t/getting-user-as-null-and-is-isauthenticated-as-false-after-successful-login/122035/9 "2023-12-22T18:02:17Z")

</div>

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