# Distinguish Signup vs Login

**URL:** <https://community.auth0.com/t/distinguish-signup-vs-login/61001>\
**Category:** Get Help\
**Tags:** auth0-spa-js\
**Created:** [April 12, 2021, 11:56pm UTC](https://community.auth0.com/t/distinguish-signup-vs-login/61001 "2021-04-12T23:56:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chronosalpha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chronosalpha/32/28753_2.png) [@chronosalpha](https://community.auth0.com/u/chronosalpha)\
**Post date:** [April 12, 2021, 11:56pm UTC](https://community.auth0.com/t/distinguish-signup-vs-login/61001/1 "2021-04-12T23:56:35Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** auth0-spa-js
- **SDK Version:** e.g. 1.14.0
- **Platform Version:** e.g. Node 14
- **Code Snippets/Error Messages/Supporting Details/Screenshots:**

**Is this a feature request or bug report?** No

With either [loginWithPopup](https://auth0.github.io/auth0-spa-js/classes/auth0client.html#loginwithpopup) or [loginWithRedirect](https://auth0.github.io/auth0-spa-js/classes/auth0client.html#loginwithredirect) is it possible to specifically determine whether the user signed up or logged in? It looks like the return types for both are `Promise<void>`, but is there an option or another mechanism to determine that information?

Thanks!

---

<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:** [April 13, 2021, 12:25pm UTC](https://community.auth0.com/t/distinguish-signup-vs-login/61001/2 "2021-04-13T12:25:06Z")

</div>

Hey there!

It’s not strictly related to auth0-spa-js but should help:

> [@How to tell if a user is logged in for the first time?](https://community.auth0.com/t/how-to-tell-if-a-user-is-logged-in-for-the-first-time/28813):
>
> Hello, We would like to show some language to a user if they have just created their account and logged in for the first time. Is there a way for us to tell if a user is logging in for the first time during or after the auth callback? Thanks, Paul

---

<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:** [April 28, 2021, 12:25pm UTC](https://community.auth0.com/t/distinguish-signup-vs-login/61001/3 "2021-04-28T12:25:43Z")

</div>

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