# Await this.oktaAuth.isAuthenticated() always returning false even after successful login

**URL:** <https://devforum.okta.com/t/await-this-oktaauth-isauthenticated-always-returning-false-even-after-successful-login/10178>\
**Category:** Questions\
**Created:** [July 17, 2020, 7:30am UTC](https://devforum.okta.com/t/await-this-oktaauth-isauthenticated-always-returning-false-even-after-successful-login/10178 "2020-07-17T07:30:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickraman](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vickraman](https://devforum.okta.com/u/vickraman)\
**Post date:** [July 17, 2020, 7:30am UTC](https://devforum.okta.com/t/await-this-oktaauth-isauthenticated-always-returning-false-even-after-successful-login/10178/1 "2020-07-17T07:30:25Z")

</div>

I’m using OKTA sign in widget and after successfully login in the page refreshes and in the app.component.ts I have " await this.oktaAuth.isAuthenticated(); " on init, but it always returns false. Can anyone help me out in this?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 24, 2024, 11:37pm UTC](https://devforum.okta.com/t/await-this-oktaauth-isauthenticated-always-returning-false-even-after-successful-login/10178/2 "2024-01-24T23:37:23Z")

</div>


