New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sharedid.cookie

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharedid.cookie

Shared ID Cookie

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

SharedID.org Cookie

Installation

npm install --save sharedid.cookie

Usage

After including the source code, call the function as follows:

<script src="./sharedid.cookie.min.js"></script>
<script>
    sharedIDCookie("sharedid-value", "http://localhost:9000/sharedid.pub");
    sharedIDCookie("sharedid-value");
    sharedIDCookie();
/script>

Please don't copy/paste this example as its calling it 3 different times to show you the possible options. Choose the one that best fits your needs and read the API docs below to help further decide based on the parameters of the function.

API

sharedIDCookie(uid, url);
uid

Type: String

A UID string that will be encrypted and stored as the value of the cookie at the sharedid namespace. If one is not passed in, an UUID (version 4) will be created for you.

url

Type: String

The URL location to the public RSA key for encrypting. If one is not provided, it will default the Shared ID RSA key.

How We Version

We use SemVer for its versioning providing us an opt-in approach to releases. This means we add a version number according to the spec, as you see below. So rather than force developers to consume the latest and greatest, they can choose which version to consume and test any newer ones before upgrading. Please the read the spec as it goes into further detail.

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes.
  • MINOR version when you add functionality in a backward-compatible manner.
  • PATCH version when you make backward-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

License

©2021 Apache 2.0. See LICENSE for specifics.

FAQs

Package last updated on 12 Apr 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc