sqrl-protocol

    0.8.0 • Public • Published

    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

    Install

    npm i sqrl-protocol

    DownloadsWeekly Downloads

    1

    Version

    0.8.0

    License

    MIT

    Unpacked Size

    32.7 kB

    Total Files

    17

    Last publish

    Collaborators

    • jjasonclark