# Detecting signup on Authlock

**URL:** <https://community.auth0.com/t/detecting-signup-on-authlock/22179>\
**Category:** Get Help\
**Tags:** signup, sign-up, lock, auth0\
**Created:** [March 6, 2019, 8:49am UTC](https://community.auth0.com/t/detecting-signup-on-authlock/22179 "2019-03-06T08:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThierryM](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thierrym/32/10846_2.png) [@ThierryM](https://community.auth0.com/u/ThierryM)\
**Post date:** [March 6, 2019, 8:49am UTC](https://community.auth0.com/t/detecting-signup-on-authlock/22179/1 "2019-03-06T08:49:14Z")

</div>

When a user signs up, i need to create a record on my application’s database to store things like user posts, votes, etc.

I cannot find a ‘sign up flag’. Is there a way to detect that a user has just signed up as opposed to signed in when using AuthLock so i can trigger the creation of the user record on my server?

The only solution I see at the moment is to send the user id to my server (in the body of my get request), check if the user record already exists and either return the server data or create a new record (probably not best practice on a get request).

Please help

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [March 7, 2019, 1:42am UTC](https://community.auth0.com/t/detecting-signup-on-authlock/22179/2 "2019-03-07T01:42:12Z")

</div>

What connections are you using?

If only using a database connection, you can use a [Post User Registration Hook](https://auth0.com/docs/hooks/concepts/post-user-registration-extensibility-point) to call your backend to create the associated entry.

As Hooks currently only run for database connections, if you’re using a social connection, you could use [Rules](https://auth0.com/docs/rules). For example, first make a GET with the user\_id; if no matching user in your database exists, perform a subsequent POST.

---

<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:** [August 30, 2019, 9:44am UTC](https://community.auth0.com/t/detecting-signup-on-authlock/22179/3 "2019-08-30T09:44:52Z")

</div>

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