Skip to content

shea256/blockstack-auth-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 BlockchainAuthAgent = require('blockchain-auth-agent'),
    PrivateKeychain = require('keychain-manager').PrivateKeychain

var privateKeychain = new PrivateKeychain()
var blockchainAuthAgent = new BlockchainAuthAgent(privateKeychain, document);
if (blockchainAuthAgent.loginOptionPresent()) {
    blockchainAuthAgent.initiateLogin();
}

About

Agent for logging into websites with Blockchain Auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published