Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atlassian-jwt

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlassian-jwt - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

1

dist/lib/jwt.d.ts

@@ -60,2 +60,3 @@ import { Request as ExpressRequest } from 'express';

export declare function getKeyId(token: string): any;
export declare function getAlgorithm(token: string): any;
/**

@@ -62,0 +63,0 @@ * Decodes JWT string to object.

@@ -48,3 +48,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.createQueryStringHash = exports.createCanonicalRequest = exports.encodeAsymmetric = exports.encodeSymmetric = exports.decodeSymmetric = exports.getKeyId = exports.decodeAsymmetric = exports.version = exports.fromMethodAndPathAndBody = exports.fromMethodAndUrl = exports.fromExpressRequest = exports.SymmetricAlgorithm = exports.AsymmetricAlgorithm = void 0;
exports.createQueryStringHash = exports.createCanonicalRequest = exports.encodeAsymmetric = exports.encodeSymmetric = exports.decodeSymmetric = exports.getAlgorithm = exports.getKeyId = exports.decodeAsymmetric = exports.version = exports.fromMethodAndPathAndBody = exports.fromMethodAndUrl = exports.fromExpressRequest = exports.SymmetricAlgorithm = exports.AsymmetricAlgorithm = void 0;
var crypto_1 = require("crypto");

@@ -156,2 +156,9 @@ var lodash_1 = __importDefault(require("lodash"));

exports.getKeyId = getKeyId;
function getAlgorithm(token) {
var _a = getTokenSegments(token), headerSeg = _a[0], payloadSeg = _a[1];
// Base64 decode and parse JSON
var header = getHeaderAndPayload(headerSeg, payloadSeg)[0];
return header && header.alg;
}
exports.getAlgorithm = getAlgorithm;
/**

@@ -158,0 +165,0 @@ * Decodes JWT string to object.

2

package.json
{
"name": "atlassian-jwt",
"description": "JWT (JSON Web Token) implementation with custom Atlassian QSH claim verification",
"version": "2.0.0",
"version": "2.0.1",
"author": "Atlassian",

@@ -6,0 +6,0 @@ "contributors": [

@@ -75,3 +75,4 @@ # atlassian-jwt

Extracts `kid` from a jwt token.
- `jwt.getAlgorithm(token)`
Extracts `alg` from a jwt token.
### Algorithms

@@ -78,0 +79,0 @@

Sorry, the diff of this file is not supported yet

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