1.2.7 • Published 2 years ago

phenix-edge-auth v1.2.7

Weekly downloads
124
License
Apache-2.0
Repository
github
Last release
2 years ago

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"
1.2.7

2 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.5-beta.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago