# \[Archive\] Problem with getting twitter user details using auth0, web3auth login works

**URL:** <https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [June 5, 2023, 8:40am UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299 "2023-06-05T08:40:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tools](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@tools](https://builder.metamask.io/u/tools)\
**Post date:** [June 5, 2023, 8:40am UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299/1 "2023-06-05T08:40:32Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **tools** on 6/5/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

Hi everyone,

We are currently developing a web 3.0 app that aims to register new crypto wallets using Twitter login. We’re utilizing the **web3auth** library to connect the wallet with social login and **auth0** to handle the linking process with Twitter. So far, we have successfully implemented the Twitter login functionality, created new wallet accounts based on registered Twitter accounts, and stored them in our database.

However, we are encountering an issue when attempting to retrieve additional user information from Twitter and add it to our database. We have reviewed the Twitter API documentation and made attempts to retrieve the data but have been unsuccessful thus far.

Upon logging in using Twitter, we receive a callback response from web3auth with the following information:

```auto
{
   aggregateVerifier: "VERIFIER_NAME"
   dappShare: ""
   email: ""
   idToken: "ID_TOKEN"
   name: "Yusuf Affandi"
   oAuthAccessToken: "OAUTH_ACCESS_TOKEN"
   oAuthIdToken: "OAUTH_ID_TOKEN"
   profileImage: "https://pbs.twimg.com/profile_images/491676557518192640/T7H-nRS7_normal.jpeg"
   typeOfLogin: "twitter"
   verifier: "VERIFIER_NAME"
   verifierId: "VERIFIER_ID"
}

```

Unfortunately, we are unable to use any of the provided tokens to establish a connection with the Twitter API and retrieve the desired information, similar to the response obtained from the `https://api.twitter.com/1.1/account/verify_credentials.json` API

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [June 6, 2023, 2:04pm UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299/2 "2023-06-06T14:04:46Z")

</div>

Hello @tools,

Have you attempted to decode the idToken that we provide? It contains additional information about users.

I have included a decoded token that was given after using Web3Auth to log in to Twitter.

If you are utilizing a custom verifier and have inputted your Twitter credentials while setup, you can extract the `oAuthAccessToken` from the response to access additional information through API calls.

[![Screenshot 2023-06-06 at 7.30.30 PM](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/f05eabb05372ef0c802d24c11d89bf355e4cefd8.png)
Screenshot 2023-06-06 at 7.30.30 PM1229×728 132 KB
](https://community.web3auth.io/community/community/uploads/default/original/1X/909ff55cb604ed5b386a0dcf8b47c668485eb7a5.png "Screenshot 2023-06-06 at 7.30.30 PM")

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.io/u/vjgee)\
**Post date:** [October 6, 2023, 3:57am UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299/3 "2023-10-06T03:57:37Z")

</div>

It has been a while we did not receive any response from you. If you still need help, feel free to reply.

You may join our upcoming community call - [Web3Auth Community Call #4 · Zoom · Luma](https://w3a.link/community-call)

---

<div class="post-metadata">

**Author:** ![nayyaralisha12345](https://avatars.discourse-cdn.com/v4/letter/n/cdc98d/32.png) [@nayyaralisha12345](https://builder.metamask.io/u/nayyaralisha12345)\
**Post date:** [July 18, 2024, 11:17am UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299/4 "2024-07-18T11:17:42Z")

</div>

@shahbaz but still we are not getting the twitter handle of the user right? how do we get it?

{  
“iat”: 1721299180,  
“aud”: “BI9MhY\_4Fd3dY74w05owvgo1MBkwyNcjVVn9olaTfiWOI9e\_qgkUlRxHH1jwx3xVQfIkWWWozS9s40g-sOz433M”,  
“nonce”: “03af060b2d245b8787a88074f1ad8a465c88e25b7d5e5709dce722033545f4a9ec”,  
“iss”: “[https://api-auth.web3auth.io](https://api-auth.web3auth.io)”,  
“wallets”: [  
{  
“public\_key”: “02eecbef730374bb5b23adb653e357bae7e2e739ef207b18c915bb31c38946cf8c”,  
“type”: “web3auth\_app\_key”,  
“curve”: “secp256k1”  
},  
{  
“public\_key”: “02803165cd5cb2ecc709533e081f98e6ece9d41f295e09cd4b767220dddaa83de0”,  
“type”: “web3auth\_threshold\_key”,  
“curve”: “secp256k1”  
}  
],  
“name”: “gsagas asdf”,  
“profileImage”: “[https://pbs.twimg.com/profile\_images/1424338391370375172/O2sRPQvN\_normal.jpg](https://pbs.twimg.com/profile_images/1424338391370375172/O2sRPQvN_normal.jpg)”,  
“verifier”: “web3auth”,  
“verifierId”: “twitter|821682769269059584”,  
“aggregateVerifier”: “web3auth-auth0-twitter-sapphire-devnet”,  
“exp”: 1721385580  
}

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [July 18, 2024, 2:33pm UTC](https://builder.metamask.io/t/archive-problem-with-getting-twitter-user-details-using-auth0-web3auth-login-works/1299/5 "2024-07-18T14:33:09Z")

</div>

Hey @nayyaralisha12345

Please use [a custom twitter verifier](https://web3auth.io/docs/auth-provider-setup/social-providers/twitter) to get more details from Auth0 in oAuthIdToken and oAuthAccessToken. And use the `oAuthAccessToken` to make direct API calls to get more info directly from twitter.
