# Documentation or Code issue with Lock 10 state configuration

**URL:** <https://community.auth0.com/t/documentation-or-code-issue-with-lock-10-state-configuration/6467>\
**Category:** Get Help\
**Tags:** code, documentation, bug, lock\
**Created:** [May 4, 2017, 1:13am UTC](https://community.auth0.com/t/documentation-or-code-issue-with-lock-10-state-configuration/6467 "2017-05-04T01:13:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![recursiveliving](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@recursiveliving](https://community.auth0.com/u/recursiveliving)\
**Post date:** [May 4, 2017, 1:13am UTC](https://community.auth0.com/t/documentation-or-code-issue-with-lock-10-state-configuration/6467/1 "2017-05-04T01:13:31Z")

</div>

I was not sure whether this is a problem with the documentation or the code so I am submitting this here as opposed to github.

In setting up Lock version 10 I found that while the documentation indicates that `state` is a parameter of `params` which in turn is a parameter of `auth` ([https://auth0.com/docs/libraries/lock/v10/customization#params-object-](https://auth0.com/docs/libraries/lock/v10/customization#params-object-)) the code in fact takes `state` directly from the `auth` object ([lock/src/core/index.js at master · auth0/lock · GitHub](https://github.com/auth0/lock/blob/master/src/core/index.js#L212)).

Aside from either the code or the documentation being wrong, a consequence of this is that, as far as I can tell, there is no way to override `state` when calling `lock.show()` which, based again on the documentation, is an anticipated developer behavior.

---

<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/documentation-or-code-issue-with-lock-10-state-configuration/6467/2 "2018-03-02T05:53:40Z")

</div>


