# Using Lock signup with loginAfterSignUp: false

**URL:** <https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530>\
**Category:** Get Help\
**Tags:** lock\
**Created:** [November 8, 2019, 1:40pm UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530 "2019-11-08T13:40:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bstaley0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bstaley0/32/17239_2.png) [@bstaley0](https://community.auth0.com/u/bstaley0)\
**Post date:** [November 8, 2019, 1:40pm UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530/1 "2019-11-08T13:40:28Z")

</div>

Hello,

I am using lock for sign in and sign up. My sign up process is a stepped process. First two steps gather information about the user/business and the last step is lock to sign up. I have a timing problem, which i hope will be resolved with [Allow signup submit to make async requests before completing sign up · Issue #1748 · auth0/lock · GitHub](https://github.com/auth0/lock/issues/1748). Until then, i need to use loginAfterSignUp: false so that i can gate the user from signing in until the user\_metadata has all the info. How can i tell if the signup was a success?

---

<div class="post-metadata">

**Author:** ![Kris.B](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kris.b/32/10642_2.png) [@Kris.B](https://community.auth0.com/u/Kris.B)\
**Post date:** [January 1, 2020, 12:15am UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530/2 "2020-01-01T00:15:03Z")

</div>

Hi @bstaley0,

For the time being, the simplest way to implement this functionality would probably be to gate access using a rule. Rules run immediately after a user authenticates (which means they will run when the user signs up if `loginAfterSignup` is `true` and will not if it is `false`) and can used to grant or restrict access to your application. Please see our [rule for requiring email verification](https://auth0.com/rules/email-verified) for an example of this.

Instead of checking `user.email_verified`, you would want to create a rule which checks whether the metadata you require is present. This could be done by either checking each individual attribute and/or by adding a single metadata field to act as a flag which indicates whether the user/busieness’ profile is “complete” according to your specifications. You may find our documentation on [using metadata in rules](https://auth0.com/docs/rules/guides/metadata) related [best practices](https://auth0.com/docs/best-practices/rules#user-object) to be helpful.

---

<div class="post-metadata">

**Author:** ![bstaley0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bstaley0/32/17239_2.png) [@bstaley0](https://community.auth0.com/u/bstaley0)\
**Post date:** [February 12, 2020, 3:24am UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530/3 "2020-02-12T03:24:06Z")

</div>

Issue resolved, check out [Allow signup submit to make async requests before completing sign up · Issue #1748 · auth0/lock · GitHub](https://github.com/auth0/lock/issues/1748) for full details.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 12, 2020, 11:48am UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530/4 "2020-02-12T11:48:51Z")

</div>

Thanks a lot for sharing it with the rest of community!

---

<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:** [February 27, 2020, 11:48am UTC](https://community.auth0.com/t/using-lock-signup-with-loginaftersignup-false/33530/5 "2020-02-27T11:48:53Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
