# Return app, app can not do other operations

**URL:** <https://community.auth0.com/t/return-app-app-can-not-do-other-operations/8439>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [October 10, 2017, 7:25pm UTC](https://community.auth0.com/t/return-app-app-can-not-do-other-operations/8439 "2017-10-10T19:25:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![575792112](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@575792112](https://community.auth0.com/u/575792112)\
**Post date:** [October 10, 2017, 7:25pm UTC](https://community.auth0.com/t/return-app-app-can-not-do-other-operations/8439/1 "2017-10-10T19:25:50Z")

</div>

I use Auth0 in the ionic, the development of app. Login with Facebook account, will open the browser to enter the Facebook user name, password to verify. But when I Facebook validation in the browser, halfway to give up, return app. I can not operate app at this time, because it is waiting for the browser can Facebook verification results. At this point, how can I stop the app waiting, and operate the app.

My code is as follows:

```
lock = new Auth0Lock(' *****************', '******.auth0.com', {
    auth: {
      redirect: false,
      params: {
        scope: 'openid offline_access'
      },
      sso: false
    },
    theme: {
      logo: 'assets/default/loginLogo.png',
      primaryColor: '#81d8cf',
    },
    language: 'zh-tw',
    rememberLastLogin: false,
    languageDictionary: {
      title: 'so funir'
    }
  public enter() {
    // Show the Auth0 Lock widget
    this.lock.show();
  }

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 16, 2017, 11:27pm UTC](https://community.auth0.com/t/return-app-app-can-not-do-other-operations/8439/2 "2017-10-16T23:27:02Z")

</div>

The recommended way to implement authentication in an Ionic applications (which is a native application even if implemented with Javascript) is to use the OAuth2 PKCE flow. Both the [Ionic](https://auth0.com/docs/quickstart/native/ionic/01-login) and [Ionic 2](https://auth0.com/docs/quickstart/native/ionic2/01-login) quickstarts showcase the use of `auth0-cordova` library to implement such flow. Based on your code, you’re trying to use Auth0 Lock in your own application which would not be recommended for this particular situation.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/return-app-app-can-not-do-other-operations/8439/3 "2018-03-02T05:56:54Z")

</div>


