New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

foxhat-javascript-sdk

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foxhat-javascript-sdk

Official SDK for FoxHat Plaform APIs

latest
npmnpm
Version
0.0.101
Version published
Maintainers
1
Created
Source

Integrating FoxHat JavaScript

Introduction

Get started with the FoxHat JavaScript SDK today and empower your applications with the security they deserve!

Features

  • Browser bot detection
  • Headless browser detection
  • Incognito detection
  • VPN detection

Installation

To install the FoxHat JavaScript SDK, run the following command in your terminal:

npm install foxhat-javascript-sdk

Usage

Initializing the SDK

To use the FoxHat SDK, you need to create an instance of the FoxHat class. Provide your API key when initializing:

const foxtHatInstance = new FoxHat.FoxHat(apiKey, true);

Parameters:

  • apiKey: Your unique API key provided by FoxHat, required for SDK initialization.
  • debugMode: The second parameter (true) enables debug mode, which can be helpful during development.

Getting a Token

Once the SDK is initialized, you can retrieve a security token necessary for making authorized API requests. Here's how to obtain and display the token:

foxtHatInstance.token()
    .then(result => {
        console.log(result)
    })
    .catch(error => {
        console.error('Error fetching token:', error);
    });

Keywords

foxhat

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts