# Ionic 2 - Login success (according to logs) but isAuthenticated() is false (IOS 11.2)

**URL:** <https://community.auth0.com/t/ionic-2-login-success-according-to-logs-but-isauthenticated-is-false-ios-11-2/9170>\
**Category:** Get Help\
**Tags:** isauthenticated, ionic-2, ios\
**Created:** [January 10, 2018, 1:54pm UTC](https://community.auth0.com/t/ionic-2-login-success-according-to-logs-but-isauthenticated-is-false-ios-11-2/9170 "2018-01-10T13:54:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pphen98](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@pphen98](https://community.auth0.com/u/pphen98)\
**Post date:** [January 10, 2018, 1:54pm UTC](https://community.auth0.com/t/ionic-2-login-success-according-to-logs-but-isauthenticated-is-false-ios-11-2/9170/1 "2018-01-10T13:54:03Z")

</div>

I try to integrate Auth0 with my Ionic app, however i ran into problem that i can’t solve. According to the Auth0 log, it is a “success login”, however the isAuthenticated() is always false. I added console.log as below:

```
public login() {
      ....
        client.authorize(options, (err, authResult) => {
          if(err) {
            console.log("Auth - err: " + JSON.stringify(err));  
            throw err;
          } 
         ...
     }
    }

```

isAuthentication() is always false because of this error:

```
Auth - err: {"original":{"line":80675,"column":22,"sourceURL":"http://x.x.x.x:8100/build/vendor.js","crossDomain":true,"method":"POST","url":"https://<tenant>.auth0.com/oauth/token"},"code":null,"description":null,"name":"Error"}

```

P.S - Work well in Android version

Could someone help me with this? Thank you.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 5:38pm UTC](https://community.auth0.com/t/ionic-2-login-success-according-to-logs-but-isauthenticated-is-false-ios-11-2/9170/2 "2018-12-14T17:38:57Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 5:39pm UTC](https://community.auth0.com/t/ionic-2-login-success-according-to-logs-but-isauthenticated-is-false-ios-11-2/9170/3 "2018-12-14T17:39:01Z")

</div>


