Skip to content

jjasonclark/sqrl-protocol

Repository files navigation

SQRL-Protocol

License

A SQRL authentication protocol handler package

Installation

$ npm install sqrl-protocol

Usage

const sqrlProtocol = require('sqrl-protocol')({
  /* config */
});

// Start a login
const nut = await sqrlProtocol.createNut(req.connection.remoteAddress);
// Process a login
const sqrlResult = await sqrlProtocol.process(
  req.connection.remoteAddress,
  req.query.nut,
  req.body
);
// Finish a login
const user = await sqrlProtocol.useCode(
  req.connection.remoteAddress,
  req.query.code
);

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published