# Pass a state to the callbackURL of Auth0 Lock Passwordless

**URL:** <https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742>\
**Category:** Get Help\
**Tags:** auth0-lock, passwordless\
**Created:** [May 25, 2017, 5:01am UTC](https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742 "2017-05-25T05:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Falzetti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea_falzetti/32/6749_2.png) [@Andrea\_Falzetti](https://community.auth0.com/u/Andrea_Falzetti)\
**Post date:** [May 25, 2017, 5:01am UTC](https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742/1 "2017-05-25T05:01:10Z")

</div>

I am trying to pass some user state to the Auth0 Lock Passwordless callbackURL:

Example:

```
		lock.emailcode({
			callbackURL: 'http://localhost:3000/',
			responseType: 'token',
			authParams: {
				foo: 'bar',
				scope: 'openid name email picture' // Learn about scopes: https://auth0.com/docs/scopes
			}
		});

```

I am trying to pass { foo: bar } to the callback page.

Is is possbile? What’s the suggested way of doing so?

Thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![Andrea\_Falzetti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea_falzetti/32/6749_2.png) [@Andrea\_Falzetti](https://community.auth0.com/u/Andrea_Falzetti)\
**Post date:** [May 25, 2017, 5:08am UTC](https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742/2 "2017-05-25T05:08:59Z")

</div>

For the moment I have found a workaround: having a query string in the callbackURL. If there’s anyone with a better solution, let me know 🙂

---

<div class="post-metadata">

**Author:** ![william.baxter](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@william.baxter](https://community.auth0.com/u/william.baxter)\
**Post date:** [October 25, 2017, 3:22am UTC](https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742/3 "2017-10-25T03:22:59Z")

</div>

It appears that passwordless login drops the state parameter rather than passing it through from the authenticate call to the callback call. Does anyone have a fix?

---

<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:54am UTC](https://community.auth0.com/t/pass-a-state-to-the-callbackurl-of-auth0-lock-passwordless/6742/4 "2018-03-02T05:54:06Z")

</div>


