You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@apolitical/auth

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apolitical/auth

Browser (and Node.js) library to manage authentication using Auth0

0.1.4
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

Apolitical Auth

Browser (and Node.js) library to manage authentication using Auth0

Requirements

Requires the following to run:

  • node.js 16.13.0+
  • yarn

Installation

Install with yarn:

yarn add @apolitical/auth

Available Scripts

In the project directory, you can run:

yarn run test

Runs the test (and the interactive mode can be enabled with --watchAll).

yarn build

Builds the library for production to the build folder. It correctly bundles the code on production mode and optimizes the build for the best performance.

yarn publish

Publishes the library to NPM.

Usage

The recommended way to use @apolitical/auth is to set the context with the appropriate parameters:

const { setContext, runExample } = require('@apolitical/auth');

setContext({ origin: 'some-url' });

And then, you can query Contentful as you like:

runExample();

Troubleshooting

Usage of other libraries within your library

  • Add the library as a dependency in package.json (effectively requiring the calling project to provide this dependency)
  • Add the Contentful library as a dependency in package.json. By default, only the library code is published, meaning that the Contentful library needs to be installed separately

Keywords

JavaScript

FAQs

Package last updated on 12 Dec 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