akamai-auth-token

A sample library for generating akamai auth token

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
akamai-auth-token
1.0.77 years ago7 years agoMinified + gzip package size for akamai-auth-token in KB

Readme

A Simple NodeJS Akamai token generator library

Installation

using yarn:
yarn add akamai-auth-token
Or with npm:
npm install akamai-auth-token

Uses

var Akamai = require('akamai-auth-token').default;
var config = {
         algorithm : 'SHA256',
         acl : '/*',
         window : 6000,
         key : "myPrivateKey",
         encoding: false
    };
 
 
 var akamai = new Akamai.default(config),
     token = akamai.generateToken();