Skip to content

Instantly share code, notes, and snippets.

@tomarsachin2271
Last active November 6, 2019 12:12
Show Gist options
  • Save tomarsachin2271/2ae5eaca1b6e6f896ba471a78e6a86bb to your computer and use it in GitHub Desktop.
Save tomarsachin2271/2ae5eaca1b6e6f896ba471a78e6a86bb to your computer and use it in GitHub Desktop.
Gist showing how to do user login using biconomy SDK
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