# Auth (so username) is not in sessionProps

**URL:** <https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [October 5, 2021, 7:19am UTC](https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608 "2021-10-05T07:19:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 5, 2021, 7:19am UTC](https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608/1 "2021-10-05T07:19:50Z")

</div>

Im trying to get the username in my module. Ive used session props before so i can call them with.  
this.props.store.view.page.sessionProps?.read(‘locale’) works.  
But auth does not seem to be in here… Any place else i can find the username of the logged in user?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 5, 2021, 12:15pm UTC](https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608/2 "2021-10-05T12:15:37Z")

</div>

Are you testing with a real client? Perspective auth doesn’t work in the designer.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 5, 2021, 12:42pm UTC](https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608/3 "2021-10-05T12:42:34Z")

</div>

yes i have a label with the username showing above my component and that one is working.  
but my module cant seem to get the session prop from inside the javascript

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 6, 2021, 8:23am UTC](https://forum.inductiveautomation.com/t/auth-so-username-is-not-in-sessionprops/51608/4 "2021-10-06T08:23:56Z")

</div>

ah i found it  
this.props.store.view.page.parent.auth.webAuthStatus.user.userName
