You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

phenix-edge-auth

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

phenix-edge-auth

Easily generate secure digest tokens to use with the Phenix platform without requiring any networking activity.


Version published
Maintainers
1
Created

Readme

Source

Phenix EdgeAuth Digest Tokens for Node

Easily generate secure digest tokens to use with the Phenix platform without requiring any networking activity.

Installation

To install Phenix Edge Authorization Digest Token with npm:

$ npm install phenix-edge-auth --save

JavaScript Example

const TokenBuilder = require('phenix-edge-auth');

// Create a token to access a channel
const token = new TokenBuilder()
	.withApplicationId('my-application-id')
	.withSecret('my-secret')
	.expiresInSeconds(3600)
	.forChannel('us-northeast#my-application-id#my-channel.1345')
	.build();

Command Line Examples

Display the help information:

node src/edgeAuth.js --help

Create a token for channel access:

node src/edgeAuth.js --applicationId "my-application-id" --secret "my-secret" --expiresInSeconds 3600 --channel "us-northeast#my-application-id#my-channel.1345"

FAQs

Package last updated on 28 Jun 2022

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc