# Multiple social login with Xano

**URL:** <https://community.weweb.io/t/multiple-social-login-with-xano/1261>\
**Category:** How do I?\
**Created:** [October 10, 2022, 1:07am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261 "2022-10-10T01:07:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IdeaGarage](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ideagarage/32/1350_2.png) [@IdeaGarage](https://community.weweb.io/u/IdeaGarage)\
**Post date:** [October 10, 2022, 1:07am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/1 "2022-10-10T01:07:00Z")

</div>

Hello,  
I tested authorization with Xano. ID&password and Google OAuth , Twitter OAuth are fine.

Now I have a question:  
How do I recognize that user logged in or not for those multiple auth resource in WeWeb?  
I assume to set variable “isAuthenticated”(save in local storage), and when user is logged in using one of those auth, change “isAuthenticated” to true.  
Is it correct or not?

Any suggestion are welcome.

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [October 10, 2022, 3:20am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/2 "2022-10-10T03:20:25Z")

</div>

No need to create a custom variable. If using Supabase there is a provider info under the Authentication variables, under the 'app\_metadata", I think Xano would be the same. The value will show Email or the provider such as Google or Twitter. Here’s how to find it.

 ![Screenshot 2022-10-10 at 11.18.58 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a66fadc38e5203f2f081cec1b473fe47c1a7449d.png)

---

<div class="post-metadata">

**Author:** ![IdeaGarage](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ideagarage/32/1350_2.png) [@IdeaGarage](https://community.weweb.io/u/IdeaGarage)\
**Post date:** [October 10, 2022, 4:59am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/3 "2022-10-10T04:59:17Z")

</div>

I can’t see “app\_metadata” under the Authentication variables, only below:

 ![スクリーンショット 2022-10-10 13.58.18](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d03bed38baee03467d998dede8e0675b1c4ace26.png)  
Anything is wrong?

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [October 10, 2022, 5:11am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/4 "2022-10-10T05:11:09Z")

</div>

May I see whats under the user object?

---

<div class="post-metadata">

**Author:** ![IdeaGarage](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ideagarage/32/1350_2.png) [@IdeaGarage](https://community.weweb.io/u/IdeaGarage)\
**Post date:** [October 10, 2022, 7:00am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/5 "2022-10-10T07:00:23Z")

</div>

Thanks, That’s all.

 ![スクリーンショット 2022-10-10 15.58.48](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/dc8e64f3ec26a40b34d221942b717543aabf09fc.png)

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [October 10, 2022, 7:08am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/6 "2022-10-10T07:08:55Z")

</div>

Sorry I’m not sure I understand your question correctly. Do you want to check wether the user is authenticated? Then simple use the isAuthenticated variable

---

<div class="post-metadata">

**Author:** ![IdeaGarage](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ideagarage/32/1350_2.png) [@IdeaGarage](https://community.weweb.io/u/IdeaGarage)\
**Post date:** [October 10, 2022, 8:59am UTC](https://community.weweb.io/t/multiple-social-login-with-xano/1261/7 "2022-10-10T08:59:08Z")

</div>

I’m so sorry, Below is the current behavior.

1)I can check whether the user is authenticated using Xano Auth plugin.(above screenshots).  
Xano Auth plugin(WeWeb) only provide ID/PW login feature, not include OAuth.

2)When I add Google OAuth, I can check user’s authenticated status through API. I save this status to custom variable using workflow.(In Xano, Google/Twutter OAuth plugin is provided, But the status is not displayed to WeWeb automatically)

3)When I add Twitter OAuth, same to No.2.

Now I want to check user’s authenticated status who use one of above. How can I do it best?  
This is the question.
