Need cognito access and refresh token after connecting to web3 auth

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