Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@manifoldco/shadowcat

Package Overview
Dependencies
Maintainers
20
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldco/shadowcat

Invisible web component auth implementation of Manifold's PUMA

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
20
Weekly downloads
 
Created
Source

shadowcat

Invisible web component auth implementation of Manifold's PUMA <https://github.com/manifoldco/puma>

Usage

  1. npm i @manifoldco/shadowcat
  2. Import and register the manifold-oauth web component:
import { defineCustomElements } from '@manifoldco/shadowcat/dist/loader';

defineCustomElements(window);
  1. Add the following code anywhere on your website/app to get an auth token:
<manifold-oauth oauth-url="[your-oauth-url]"></manifold-oauth>
  1. Listen for the event tokenReceived:
document.addEventListener("tokenReceived", e => {
  console.log(e.detail); // received token
  // do stuff...
});

Dev Setup

  1. npm install to install dependencies.
  2. npm start to start the development server.
  3. Go to localhost:3333. The development server will display a blank page.
  4. Open the console. There will be a message/token logged.

Publish to npm

  1. Add a git tag with the version number you want to publish.
    • For example, version 1 would be git tag v1.0.0.
  2. Publish the version to npm by running npm run publish.
    • Ensure that you're logged into your npm account and have access to publish packages in the @manifoldco org when you do this.

Code of Conduct | Contribution Guidelines

GitHub release

Travis

version (scoped)

License

FAQs

Package last updated on 24 Jul 2019

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