# How to distinguish first login after sign up

**URL:** <https://community.auth0.com/t/how-to-distinguish-first-login-after-sign-up/94885>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [November 22, 2022, 4:14am UTC](https://community.auth0.com/t/how-to-distinguish-first-login-after-sign-up/94885 "2022-11-22T04:14:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![supergrounded](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supergrounded/32/37589_2.png) [@supergrounded](https://community.auth0.com/u/supergrounded)\
**Post date:** [November 22, 2022, 3:19pm UTC](https://community.auth0.com/t/how-to-distinguish-first-login-after-sign-up/94885/3 "2022-11-22T15:19:24Z")

</div>

> Are you able to see 2 separate login events in your dashboard logs (monitoring → logs)?

There is only one login event when I check the log, but I think the code was executed again during the silent auth.

 ![Screen Shot 2022-11-22 at 10.17.33 AM](https://global.discourse-cdn.com/auth0/original/3X/d/3/d3a7490320821b0e375e427825fda47c752da6b5.png)

> Could you move this to a [pre user registration](https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow?_gl=1*aim4qq*rollup_ga*NDcxOTM4ODQwLjE2NjYwMjk3NzE.*rollup_ga_F1G3E656YZ*MTY2OTA5MTIxMi42OC4xLjE2NjkwOTE4NjEuNjAuMC4w&_ga=2.77069462.229810830.1669091680-471938840.1666029771#set-metadata-in-the-user-profile) action instead? It might be a good use case for it.

For putting it in pre user registration, what if the user’s registration wasn’t successful and the email provided wasn’t valid? Then in this case the Stripe customer creation wouldn’t make sense in the pre user registration right?

---

_[View the full topic](https://community.auth0.com/t/how-to-distinguish-first-login-after-sign-up/94885)._
