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

@azure/msal-react

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-react - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

2

dist/components/AuthenticatedTemplate.js

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import React__default, { useMemo } from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import React__default, { useMemo } from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import React__default, { useMemo } from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import React__default from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import { AuthError } from '@azure/msal-browser';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import { useState, useEffect } from 'react';

@@ -1,4 +0,4 @@

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';
import { useState, useEffect } from 'react';
import { useMemo } from 'react';
import { useMsal } from './useMsal.js';

@@ -27,3 +27,3 @@ import { InteractionStatus } from '@azure/msal-browser';

const { accounts: allAccounts, inProgress } = useMsal();
const [hasAuthenticated, setHasAuthenticated] = useState(() => {
const isUserAuthenticated = useMemo(() => {
if (inProgress === InteractionStatus.Startup) {

@@ -33,7 +33,4 @@ return false;

return isAuthenticated(allAccounts, matchAccount);
});
useEffect(() => {
setHasAuthenticated(isAuthenticated(allAccounts, matchAccount));
}, [allAccounts, matchAccount]);
return hasAuthenticated;
}, [allAccounts, inProgress, matchAccount]);
return isUserAuthenticated;
}

@@ -40,0 +37,0 @@

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import { useContext } from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import { useState, useRef, useEffect, useCallback } from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ export { MsalConsumer, MsalContext } from './MsalContext.js';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import * as React from 'react';

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

@@ -3,0 +3,0 @@ import React__default, { useEffect, useMemo, useReducer } from 'react';

export declare const name = "@azure/msal-react";
export declare const version = "2.0.15";
export declare const version = "2.0.16";

@@ -1,8 +0,8 @@

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';
/* eslint-disable header/header */
const name = "@azure/msal-react";
const version = "2.0.15";
const version = "2.0.16";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

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

/*! @azure/msal-react v2.0.15 2024-04-11 */
/*! @azure/msal-react v2.0.16 2024-05-07 */
'use strict';

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

{
"name": "@azure/msal-react",
"version": "2.0.15",
"version": "2.0.16",
"author": {

@@ -50,7 +50,7 @@ "name": "Microsoft",

"peerDependencies": {
"@azure/msal-browser": "^3.13.0",
"@azure/msal-browser": "^3.14.0",
"react": "^16.8.0 || ^17 || ^18"
},
"devDependencies": {
"@azure/msal-browser": "^3.13.0",
"@azure/msal-browser": "^3.14.0",
"@rollup/plugin-typescript": "^11.1.5",

@@ -57,0 +57,0 @@ "@testing-library/jest-dom": "^5.11.5",

@@ -6,3 +6,3 @@ /*

import { useState, useEffect } from "react";
import { useMemo } from "react";
import { useMsal } from "./useMsal";

@@ -36,3 +36,3 @@ import { AccountIdentifiers } from "../types/AccountIdentifiers";

const [hasAuthenticated, setHasAuthenticated] = useState<boolean>(() => {
const isUserAuthenticated = useMemo(() => {
if (inProgress === InteractionStatus.Startup) {

@@ -42,9 +42,5 @@ return false;

return isAuthenticated(allAccounts, matchAccount);
});
}, [allAccounts, inProgress, matchAccount]);
useEffect(() => {
setHasAuthenticated(isAuthenticated(allAccounts, matchAccount));
}, [allAccounts, matchAccount]);
return hasAuthenticated;
return isUserAuthenticated;
}
/* eslint-disable header/header */
export const name = "@azure/msal-react";
export const version = "2.0.15";
export const version = "2.0.16";

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