Socket
Socket
Sign inDemoInstall

azure-ad-verify-token

Package Overview
Dependencies
22
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

0

dist/cache.d.ts

@@ -0,0 +0,0 @@ import { CacheItem } from './interfaces.js';

@@ -0,0 +0,0 @@ import { getConfig } from './config.js';

@@ -0,0 +0,0 @@ import { Config } from './interfaces.js';

@@ -0,0 +0,0 @@ /**

export { getConfig, setConfig } from './config.js';
export { verify } from './verify.js';
export { Config, VerifyOptions } from './interfaces.js';
export { getConfig, setConfig } from './config.js';
export { verify } from './verify.js';

@@ -0,0 +0,0 @@ /**

3

dist/verify.d.ts

@@ -1,2 +0,1 @@

import jwt from 'jsonwebtoken';
import { VerifyOptions } from './interfaces.js';

@@ -9,2 +8,2 @@ /**

*/
export declare function verify(token: string, options: VerifyOptions): Promise<string | jwt.JwtPayload>;
export declare function verify(token: string, options: VerifyOptions): Promise<string | import("jsonwebtoken").JwtPayload>;

@@ -1,2 +0,2 @@

import jwt from 'jsonwebtoken';
import { decode as jwtDecode, verify as jwtVerify } from 'jsonwebtoken';
import fetch from 'node-fetch';

@@ -51,3 +51,3 @@ import getPem from 'rsa-pem-from-mod-exp';

try {
decoded = jwt.decode(token, { complete: true, json: true });
decoded = jwtDecode(token, { complete: true, json: true });
kid = decoded.header.kid;

@@ -61,3 +61,3 @@ if (!kid) {

}
return getPublicKey(jwksUri, kid).then((key) => jwt.verify(token, key, {
return getPublicKey(jwksUri, kid).then((key) => jwtVerify(token, key, {
algorithms: ['RS256'],

@@ -64,0 +64,0 @@ audience,

{
"name": "azure-ad-verify-token",
"version": "3.0.1",
"version": "3.0.2",
"description": "Verify JWT issued by Azure Active Directory B2C.",

@@ -41,3 +41,2 @@ "keywords": [

"prepublishOnly": "npm run build",
"release": "standard-version",
"format": "prettier --write ."

@@ -62,3 +61,2 @@ },

"pretty-quick": "^3.1.3",
"standard-version": "^9.5.0",
"ts-jest": "^29.0.5",

@@ -65,0 +63,0 @@ "ts-node": "^10.9.1",

@@ -0,0 +0,0 @@ [![NPM Version](https://badge.fury.io/js/azure-ad-verify-token.svg)](https://badge.fury.io/js/azure-ad-verify-token)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc