Last active
November 6, 2019 12:12
-
-
Save tomarsachin2271/2ae5eaca1b6e6f896ba471a78e6a86bb to your computer and use it in GitHub Desktop.
Gist showing how to do user login using biconomy SDK
This file contains 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
biconomy.login(<public wallet address>, (error, response) => { | |
if(response.transactionHash) { | |
// First time user. Contract wallet transaction pending. Wait for confirmation. | |
} else if(response.userContract) { | |
// Existing user login successful | |
} | |
}); | |
biconomy.on(biconomy.LOGIN_CONFIRMATION, (log) => { | |
// User's Contract Wallet creation successful | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment