# \[Archive\] Need cognito access and refresh token after connecting to web3 auth

**URL:** <https://builder.metamask.io/t/archive-need-cognito-access-and-refresh-token-after-connecting-to-web3-auth/2208>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [December 6, 2022, 12:11pm UTC](https://builder.metamask.io/t/archive-need-cognito-access-and-refresh-token-after-connecting-to-web3-auth/2208 "2022-12-06T12:11:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [December 6, 2022, 12:11pm UTC](https://builder.metamask.io/t/archive-need-cognito-access-and-refresh-token-after-connecting-to-web3-auth/2208/1 "2022-12-06T12:11:45Z")

</div>

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

* * *

Hi,

I am connecting to web3 auth using cognito idToken and able to access user details web3auth.getUserInfo(). But I also need access and refresh tokens from cognito using web3auth.getUserInfo(). Is it possible to include these attributes into user info?

Thanks

  
   
 Originally posted by: [irfanonk](https://github.com/irfanonk)  
   
 Check the discussion at: [https://github.com/orgs/Web3Auth/discussions/1008](https://github.com/orgs/Web3Auth/discussions/1008)

---

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [January 6, 2023, 10:11am UTC](https://builder.metamask.io/t/archive-need-cognito-access-and-refresh-token-after-connecting-to-web3-auth/2208/2 "2023-01-06T10:11:45Z")

</div>

Hey [@irfanonk](https://github.com/irfanonk)

`web3auth.getUserInfo()` returns an `oAuthAccessToken` which is the same returned from Cognito in your case here. But it doesn't have refresh tokens.

May I know your use case here?

  
   
 Originally posted by: [shahbaz17](https://github.com/shahbaz17)
