# Auth0 Lock use Token Rather than Password

**URL:** <https://community.auth0.com/t/auth0-lock-use-token-rather-than-password/8321>\
**Category:** Get Help\
**Tags:** auth0-lock, lock-10, password, token\
**Created:** [September 28, 2017, 2:33am UTC](https://community.auth0.com/t/auth0-lock-use-token-rather-than-password/8321 "2017-09-28T02:33:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_patten](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chris\_patten](https://community.auth0.com/u/chris_patten)\
**Post date:** [September 28, 2017, 2:33am UTC](https://community.auth0.com/t/auth0-lock-use-token-rather-than-password/8321/1 "2017-09-28T02:33:48Z")

</div>

How do I configure Auth0-Lock 10.18.0 package to not send the password in plain text but instead send a token for validation? When I look at the request being done over the wire, it has both my username and password in the payload which is typically bad practice. Here is my current config:

```
new Auth0Lock(result.body.clientId, configuration.getDomain(), {
          oidcConformant: true,
          autoclose: true,
          auth: {
            redirectUrl: this.storeUri,
            responseType: 'token id_token',
            audience: `https://${configuration.getDomain()}/userinfo`,
            params: {
              scope: 'openid'
            },
          },
          languageDictionary: {
            title: this.title
          },
          theme: {
            logo: this.logo
          }
        });

```

---

<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/auth0-lock-use-token-rather-than-password/8321/2 "2018-03-02T05:56:43Z")

</div>


