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

@azure/msal-node

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-node - npm Package Compare versions

Comparing version 2.16.2 to 3.0.1

15

dist/cache/NodeStorage.d.ts

@@ -63,7 +63,2 @@ import { TokenKeys, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, ServerTelemetryEntity, ThrottlingEntity, CacheManager, Logger, ValidCacheType, ICrypto, AuthorityMetadataEntity, ValidCredentialType, StaticAuthorityOptions } from "@azure/msal-common/node";

/**
* fetch the account entity
* @param accountKey - lookup key to fetch cache type AccountEntity
*/
getAccount(accountKey: string): AccountEntity | null;
/**
* Reads account from cache, builds it into an account entity and returns it.

@@ -73,3 +68,3 @@ * @param accountKey - lookup key to fetch cache type AccountEntity

*/
getCachedAccountEntity(accountKey: string): AccountEntity | null;
getAccount(accountKey: string): AccountEntity | null;
/**

@@ -79,3 +74,3 @@ * set account entity

*/
setAccount(account: AccountEntity): void;
setAccount(account: AccountEntity): Promise<void>;
/**

@@ -90,3 +85,3 @@ * fetch the idToken credential

*/
setIdTokenCredential(idToken: IdTokenEntity): void;
setIdTokenCredential(idToken: IdTokenEntity): Promise<void>;
/**

@@ -101,3 +96,3 @@ * fetch the accessToken credential

*/
setAccessTokenCredential(accessToken: AccessTokenEntity): void;
setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
/**

@@ -112,3 +107,3 @@ * fetch the refreshToken credential

*/
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void;
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): Promise<void>;
/**

@@ -115,0 +110,0 @@ * fetch appMetadata entity from the platform cache

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
export declare class HashUtils {

@@ -3,0 +4,0 @@ /**

@@ -28,3 +28,2 @@ /**

export { TokenCache } from "./cache/TokenCache.js";
export { NodeStorage } from "./cache/NodeStorage.js";
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";

@@ -31,0 +30,0 @@ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";

export declare const name = "@azure/msal-node";
export declare const version = "2.16.2";
export declare const version = "3.0.1";
//# sourceMappingURL=packageMetadata.d.ts.map
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";

@@ -3,0 +4,0 @@ import { ILoopbackClient } from "../network/ILoopbackClient.js";

@@ -63,7 +63,2 @@ import { TokenKeys, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, ServerTelemetryEntity, ThrottlingEntity, CacheManager, Logger, ValidCacheType, ICrypto, AuthorityMetadataEntity, ValidCredentialType, StaticAuthorityOptions } from "@azure/msal-common/node";

/**
* fetch the account entity
* @param accountKey - lookup key to fetch cache type AccountEntity
*/
getAccount(accountKey: string): AccountEntity | null;
/**
* Reads account from cache, builds it into an account entity and returns it.

@@ -73,3 +68,3 @@ * @param accountKey - lookup key to fetch cache type AccountEntity

*/
getCachedAccountEntity(accountKey: string): AccountEntity | null;
getAccount(accountKey: string): AccountEntity | null;
/**

@@ -79,3 +74,3 @@ * set account entity

*/
setAccount(account: AccountEntity): void;
setAccount(account: AccountEntity): Promise<void>;
/**

@@ -90,3 +85,3 @@ * fetch the idToken credential

*/
setIdTokenCredential(idToken: IdTokenEntity): void;
setIdTokenCredential(idToken: IdTokenEntity): Promise<void>;
/**

@@ -101,3 +96,3 @@ * fetch the accessToken credential

*/
setAccessTokenCredential(accessToken: AccessTokenEntity): void;
setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
/**

@@ -112,3 +107,3 @@ * fetch the refreshToken credential

*/
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void;
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): Promise<void>;
/**

@@ -115,0 +110,0 @@ * fetch appMetadata entity from the platform cache

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
export declare class HashUtils {

@@ -3,0 +4,0 @@ /**

@@ -28,3 +28,2 @@ /**

export { TokenCache } from "./cache/TokenCache.js";
export { NodeStorage } from "./cache/NodeStorage.js";
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";

@@ -31,0 +30,0 @@ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";

export declare const name = "@azure/msal-node";
export declare const version = "2.16.2";
export declare const version = "3.0.1";
//# sourceMappingURL=packageMetadata.d.ts.map
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";

@@ -3,0 +4,0 @@ import { ILoopbackClient } from "../network/ILoopbackClient.js";

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@azure/msal-node",
"version": "2.16.2",
"version": "3.0.1",
"author": {

@@ -85,3 +85,3 @@ "name": "Microsoft",

"dependencies": {
"@azure/msal-common": "14.16.0",
"@azure/msal-common": "15.0.1",
"jsonwebtoken": "^9.0.0",

@@ -88,0 +88,0 @@ "uuid": "^8.3.0"

@@ -217,14 +217,2 @@ /*

/**
* fetch the account entity
* @param accountKey - lookup key to fetch cache type AccountEntity
*/
getAccount(accountKey: string): AccountEntity | null {
const accountEntity = this.getCachedAccountEntity(accountKey);
if (accountEntity && AccountEntity.isAccountEntity(accountEntity)) {
return this.updateOutdatedCachedAccount(accountKey, accountEntity);
}
return null;
}
/**
* Reads account from cache, builds it into an account entity and returns it.

@@ -234,3 +222,3 @@ * @param accountKey - lookup key to fetch cache type AccountEntity

*/
getCachedAccountEntity(accountKey: string): AccountEntity | null {
getAccount(accountKey: string): AccountEntity | null {
const cachedAccount = this.getItem(accountKey);

@@ -246,3 +234,3 @@ return cachedAccount

*/
setAccount(account: AccountEntity): void {
async setAccount(account: AccountEntity): Promise<void> {
const accountKey = account.generateAccountKey();

@@ -268,3 +256,3 @@ this.setItem(accountKey, account);

*/
setIdTokenCredential(idToken: IdTokenEntity): void {
async setIdTokenCredential(idToken: IdTokenEntity): Promise<void> {
const idTokenKey = CacheHelpers.generateCredentialKey(idToken);

@@ -290,3 +278,5 @@ this.setItem(idTokenKey, idToken);

*/
setAccessTokenCredential(accessToken: AccessTokenEntity): void {
async setAccessTokenCredential(
accessToken: AccessTokenEntity
): Promise<void> {
const accessTokenKey = CacheHelpers.generateCredentialKey(accessToken);

@@ -316,3 +306,5 @@ this.setItem(accessTokenKey, accessToken);

*/
setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void {
async setRefreshTokenCredential(
refreshToken: RefreshTokenEntity
): Promise<void> {
const refreshTokenKey =

@@ -319,0 +311,0 @@ CacheHelpers.generateCredentialKey(refreshToken);

@@ -51,3 +51,2 @@ /*

export { TokenCache } from "./cache/TokenCache.js";
export { NodeStorage } from "./cache/NodeStorage.js";
export {

@@ -54,0 +53,0 @@ CacheKVStore,

/* eslint-disable header/header */
export const name = "@azure/msal-node";
export const version = "2.16.2";
export const version = "3.0.1";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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