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

:classical_building: 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

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1008

Hey @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