foxhat-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

FoxHat

Installation

$ npm i foxhat-node-sdk

SDK Overview

const CryptoJS = require("crypto-js");
const {FoxHat} = require("foxhat-node-sdk");

const apiKay = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGlfdXJsIjoiaHR0cHM6L...."
const foxhat = new FoxHat(apiKay);
const password = "user_password"
const hashedPassword = CryptoJS.SHA256(password).toString();
foxhat.compromised('email', hashedPassword, (error, isCompromised, data) => {
    if (error) {
        console.error('Error:', error.message);
    } else {
        if (isCompromised === true) {
            console.log('Credentials are compromised');
        }
        else {
            console.log('Credentials are not compromised');
        } 
    }
    
});

Readme

Keywords

Package Sidebar

Install

npm i foxhat-node-sdk

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

7.68 kB

Total Files

8

Last publish

Collaborators

  • foxhat