# How to detect a manual login vs a silent login

**URL:** <https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [July 24, 2023, 2:57pm UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947 "2023-07-24T14:57:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgodin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dgodin](https://community.auth0.com/u/dgodin)\
**Post date:** [July 24, 2023, 2:57pm UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947/1 "2023-07-24T14:57:45Z")

</div>

We want to generate a new session Id when a user physically puts in a user name and password.

We are using the Auth0.js SDK to login. When a user first comes to the site they are prompted with a user name and password. However when a new tab is opened in the bowser the authorize call will login silently in the background with out a user prompt. Is there a way to detect when the login was done with and without user interaction, maybe in the Post Login action or in the callback?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 28, 2023, 3:30pm UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947/3 "2023-07-28T15:30:45Z")

</div>

Hi @dgodin,

Welcome to the Auth0 Community!

In a post-login action, you can use `event.transaction.prompt === none` to determine if the login was a ‘silent auth’.

---

<div class="post-metadata">

**Author:** ![dgodin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dgodin](https://community.auth0.com/u/dgodin)\
**Post date:** [July 31, 2023, 8:09am UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947/4 "2023-07-31T08:09:26Z")

</div>

Hi Dan,

Sadly this doesn’t work. In SSO if the user has already logged in on another tab `event.transaction.prompt === none` is false even if the user wasn’t prompted for a password. We instead have to call checkSession first and only call authorize if there is no active session as event.transaction.prompt is not reliable.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 31, 2023, 1:39pm UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947/5 "2023-07-31T13:39:54Z")

</div>

Can you please share an example of the request to Authorize you are describing? What params are being sent with this request?

---

<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 23, 2023, 2:40pm UTC](https://community.auth0.com/t/how-to-detect-a-manual-login-vs-a-silent-login/111947/6 "2023-08-23T14:40:47Z")

</div>

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