New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@icapps/tree-house-authentication

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icapps/tree-house-authentication - npm Package Compare versions

Comparing version 3.1.6 to 4.0.0

build/lib/sso-authentication.d.ts

4

build/config/jwt.config.d.ts

@@ -9,1 +9,5 @@ import { Algorithm } from 'jsonwebtoken';

};
export declare const DEFAULT_JWT_DECODE_OPTIONS: {
complete: boolean;
json: boolean;
};

@@ -10,1 +10,5 @@ "use strict";

};
exports.DEFAULT_JWT_DECODE_OPTIONS = {
complete: false,
json: false,
};
import * as saml from './lib/saml-authentication';
export * from './lib/sso-authentication';
export * from './lib/jwt-authentication';

@@ -3,0 +4,0 @@ export * from './lib/session-authentication';

@@ -8,2 +8,3 @@ "use strict";

exports.saml = saml;
__export(require("./lib/sso-authentication"));
__export(require("./lib/jwt-authentication"));

@@ -10,0 +11,0 @@ __export(require("./lib/session-authentication"));

8

build/lib/jwt-authentication.d.ts

@@ -1,7 +0,11 @@

import { SignOptions } from 'jsonwebtoken';
/// <reference types="node" />
import { SignOptions, DecodeOptions } from 'jsonwebtoken';
export declare function createJwt(payload: Object, options?: CustomSignOptions): Promise<{}>;
export declare function authenticateJwt(token: string, options?: CustomSignOptions): Promise<{}>;
export declare function decodeJwt(token: string): null | object | string;
export declare function decodeJwt(token: string, options?: DecodeOptions): null | {
[key: string]: any;
} | string;
export declare function verifyJwt(token: string, secretOrKey: string | Buffer, jwtSettings: SignOptions): Promise<{}>;
export interface CustomSignOptions extends SignOptions {
secretOrKey: string;
}

@@ -28,4 +28,4 @@ "use strict";

exports.authenticateJwt = authenticateJwt;
function decodeJwt(token) {
return jsonwebtoken_1.decode(token);
function decodeJwt(token, options = jwt_config_1.DEFAULT_JWT_DECODE_OPTIONS) {
return jsonwebtoken_1.decode(token, options);
}

@@ -51,1 +51,2 @@ exports.decodeJwt = decodeJwt;

}
exports.verifyJwt = verifyJwt;
{
"name": "@icapps/tree-house-authentication",
"version": "3.1.6",
"version": "4.0.0",
"description": "Tree House Authentication module",

@@ -24,8 +24,10 @@ "main": "build/index.js",

"dependencies": {
"bcrypt": "~3.0.7",
"bcrypt": "~3.0.8",
"express-session": "~1.17.0",
"jsonwebtoken": "~8.5.1",
"jwks-rsa": "~1.7.0",
"ldapjs": "~1.0.2",
"openid-client": "~3.14.1",
"qrcode": "~1.4.4",
"samlify": "~2.6.2",
"samlify": "~2.7.1",
"speakeasy": "~2.0.0"

@@ -35,10 +37,10 @@ },

"@types/bcrypt": "~3.0.0",
"@types/express-session": "~1.15.16",
"@types/jest": "~24.9.0",
"@types/jsonwebtoken": "~8.3.6",
"@types/ldapjs": "~1.0.4",
"@types/express-session": "~1.17.0",
"@types/jest": "~25.1.5",
"@types/jsonwebtoken": "~8.3.8",
"@types/ldapjs": "~1.0.6",
"@types/qrcode": "~1.3.4",
"@types/speakeasy": "~2.0.5",
"coveralls": "~3.0.9",
"jest": "~24.9.0",
"coveralls": "~3.0.11",
"jest": "~25.2.7",
"node-mocks-http": "~1.8.1",

@@ -48,9 +50,9 @@ "np": "~5.2.1",

"supertest": "~4.0.2",
"ts-jest": "~24.3.0",
"ts-jest": "~25.3.0",
"tslint-config-airbnb": "~5.11.2",
"tslint": "~5.20.1",
"typescript": "~3.7.5"
"tslint": "~6.1.1",
"typescript": "~3.8.3"
},
"engines": {
"node": ">=8.0.0"
"node": ">=10.13.0"
},

@@ -57,0 +59,0 @@ "directories": {

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