blockchain-auth-agent
v0.0.2
Published
Agent for logging into websites with Blockchain Auth.
Downloads
3
Readme
Blockchain Auth Agent
Agent for logging into websites with Blockchain Auth.
Getting Started
This library is intended for use in the browser.
First, install the library via npm, then browserify your bundle and include that bundle in your web application.
npm install blockchain-auth-agent
Logging In
var privateKeychain = new PrivateKeychain()
var blockchainAuthAgent = new BlockchainAuthAgent(privateKeychain, document);
if (blockchainAuthAgent.loginOptionPresent()) {
blockchainAuthAgent.initiateLogin();
}