Socket
Book a DemoInstallSign in
Socket

third-party-cookie-check

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

third-party-cookie-check

Check if the browser supports third-party cookies.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

A simple way to check for third party cookie support.

Warning

This module can be imported on the server and in a browser without issue, but it will likely throw an error if you call the function on the server.

You know your environment better than I do, so I leave it to you to ensure your code is running in a browser before calling this module.

Installation

npm install third-party-cookie-check

Usage

import cookieCheck from 'third-party-cookie-check';

// If the check takes > 1 second, supported will be false and timedOut will be true
const { supported, timedOut } = await cookieCheck();

Keywords

cookie

FAQs

Package last updated on 07 Jan 2020

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