0.0.2 • Published 9 years ago

blockchain-auth-agent v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

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();
}