# Auth0-lock and Ionic2. Cutomize the login layout

**URL:** <https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461>\
**Category:** Get Help\
**Tags:** auth0-lock, ionic2\
**Created:** [May 3, 2017, 8:24pm UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461 "2017-05-03T20:24:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbrown](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mbrown](https://community.auth0.com/u/mbrown)\
**Post date:** [May 3, 2017, 8:24pm UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461/1 "2017-05-03T20:24:20Z")

</div>

I’m having a weird issue with the login layout of Auth0 in Ionic2. I can’t customize the layout as I did with Angular2.

**Angular 2 Code:**

```
lock = new Auth0Lock(Auth0Vars.AUTH0_CLIENT_ID, Auth0Vars.AUTH0_DOMAIN, {
auth: {
  language:"es",
  languageDictionary:{
    title: "Iniciar",
    passwordInputPlaceholder: "Password" 
  },
  allowedConnections: "prdad"],
  avatar: null, 
  closable: false,
  params: {
    scope: 'openid offline_access employeeID sAMAccountName name email picture'
  },
  rememberLastLogin: false,
  theme: {
    logo: './../../img/icon_reverse.png',
    labeledSubmitButton: false,
    primaryColor: '#00827C'
  }
}
});

```

**Ionic 2 code:**

```
lock = new Auth0Lock(Auth0Vars.AUTH0_CLIENT_ID, Auth0Vars.AUTH0_DOMAIN, {
auth: {
  language:"es",
  languageDictionary:{
    title: "Iniciar",
    passwordInputPlaceholder: "Password" 
  },
  allowedConnections: "prdad"],
  avatar: null, 
  redirect: false,
  closable: false,
  params: {
    scope: 'openid offline_access nickname sAMAccountName profile employeeID name email picture',
    device: 'my-device'
  }
  sso: false,    
  theme: {
    logo: './../../img/icon_reverse.png',
    labeledSubmitButton: false,
    primaryColor: '#00827C'
  }
  }
 });

```

As you can see, both configurations are quite similar, but do not show the same results. In the case of ionic, I’m not getting the Theme, some Scopes and language configuration sets.

Unfortunately in the Auth0 documentation for Ionic2 there’s no much info about it.

Regards

---

<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:** [May 8, 2017, 8:18pm UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461/2 "2017-05-08T20:18:31Z")

</div>

Both code snippets show all options being provided within the `auth` inner property which is not correct. Update your question with the correct configuration you use because the provided ones don’t seem valid. Also state which version of Lock are you using.

---

<div class="post-metadata">

**Author:** ![mbrown](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mbrown](https://community.auth0.com/u/mbrown)\
**Post date:** [May 9, 2017, 8:12pm UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461/3 "2017-05-09T20:12:11Z")

</div>

@jmangelo the version is 10.13.0, and the options provided in both code snippets that are within the auth property, It’s because I was following the Ionic2+Auth0 documentation. Also provided in [GitHub - auth0-samples/auth0-ionic2-samples](https://github.com/auth0-samples/auth0-ionic2-samples)

A few days ago I figure it the issue in my code and fixed it, but again documentation about Ionic2+auth0 is incomplete.

By the way, thank you @jmangelo for your time and answer.

---

<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:** [May 9, 2017, 8:27pm UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461/4 "2017-05-09T20:27:42Z")

</div>

For future reference, the samples may not highlight the use of all Lock options and may only make use of `auth` related options.

For full information on how to configure Lock with additional options refer to the Lock documentation; for version 10, see: [https://auth0.com/docs/libraries/lock/v10/customization](https://auth0.com/docs/libraries/lock/v10/customization)

---

<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:53am UTC](https://community.auth0.com/t/auth0-lock-and-ionic2-cutomize-the-login-layout/6461/5 "2018-03-02T05:53:39Z")

</div>


