Last active
June 27, 2021 05:53
-
-
Save yai333/92472591e0aa98281c4a5b1bca80476d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Web3 = require('web3'); | |
| const getIdToken = (address) => { | |
| const param = { | |
| IdentityPoolId: process.env.IDENTITY_POOL_ID, | |
| Logins: {}, | |
| }; | |
| param.Logins[process.env.DEVELOPER_PROVIDER_NAME] = address; | |
| return cognitoidentity.getOpenIdTokenForDeveloperIdentity(param).promise(); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment