# Is it possible to detect whether a social account had 2FA set?

**URL:** <https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [November 18, 2024, 2:50pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786 "2024-11-18T14:50:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrp1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kkrp1](https://community.auth0.com/u/kkrp1)\
**Post date:** [November 18, 2024, 2:50pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786/1 "2024-11-18T14:50:37Z")

</div>

When someone logs in via social media, is it possible to know, in a post-login event and the `event` object, whether that social media account had 2FA set?

I’m not referring to Auth0’s own 2FA, but 2FA on the Google (for example) account itself. I would assume not, but thought I’d ask.

Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 18, 2024, 10:12pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786/3 "2024-11-18T22:12:49Z")

</div>

Hi @kkrp1,

Yes, you can determine if a social user logging in has 2FA configured by checking the `event.user.multifactor` property.

See our [Actions Triggers: post-login - Event Object](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/post-login-event-object#:~:text=for%20Database%20connections.-,multifactor,-Optional%20array%20of) documentation as a reference.

Note that you can only check if the user has MFA on Auth0 and not on Google IdP.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![kkrp1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kkrp1](https://community.auth0.com/u/kkrp1)\
**Post date:** [November 19, 2024, 4:29pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786/4 "2024-11-19T16:29:33Z")

</div>

> [@rueben.tiow](#):
>
> Rueben

Hi Rueben,

Thank you for the reply. As I mentioned in my question, I’m specifically wanting to check whether the user has MFA enabled on their social (e.g. Google) account, not their Auth0 account. So I assume this is not possible.

Thanks anyway

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 20, 2024, 5:08pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786/5 "2024-11-20T17:08:24Z")

</div>

Hi @kkrp1,

Thanks for the clarification.

Unfortunately, it won’t be possible since the MFA process is taking place on the Google IDP side, and there’s no way to communicate that to Auth0.

Let us know if you have any further questions.

Cheers,  
Rueben

---

<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:** [December 4, 2024, 5:09pm UTC](https://community.auth0.com/t/is-it-possible-to-detect-whether-a-social-account-had-2fa-set/151786/6 "2024-12-04T17:09:15Z")

</div>

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