@azure/msal-react 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -23
- package/dist/MsalContext.js +1 -1
- package/dist/MsalProvider.js +1 -1
- package/dist/components/AuthenticatedTemplate.js +1 -1
- package/dist/components/MsalAuthenticationTemplate.js +1 -1
- package/dist/components/UnauthenticatedTemplate.js +1 -1
- package/dist/components/withMsal.js +1 -1
- package/dist/error/ReactAuthError.js +1 -1
- package/dist/hooks/useAccount.js +1 -1
- package/dist/hooks/useIsAuthenticated.js +1 -1
- package/dist/hooks/useMsal.js +1 -1
- package/dist/hooks/useMsalAuthentication.js +1 -1
- package/dist/index.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/utils/utilities.js +1 -1
- package/lib/msal-react.cjs +2 -2
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +10 -9
- package/src/packageMetadata.ts +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
[](https://nodei.co/npm/@azure/msal-react/)
|
|
5
5
|
[](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
|
|
6
6
|
|
|
7
|
-
| <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-react" target="blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_react.html" target="_blank">Library Reference</a> | <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples" target="blank">Samples</a>
|
|
8
|
-
|
|
7
|
+
| <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-react" target="blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_react.html" target="_blank">Library Reference</a> | <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples" target="blank">Samples</a> |
|
|
8
|
+
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
9
9
|
|
|
10
10
|
1. [About](#about)
|
|
11
11
|
1. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-react/FAQ.md)
|
|
@@ -32,16 +32,16 @@ The `@azure/msal-react` package described by the code in this folder uses the [`
|
|
|
32
32
|
|
|
33
33
|
## Prerequisites
|
|
34
34
|
|
|
35
|
-
-
|
|
35
|
+
- `@azure/msal-react` is meant to be used in [Single-Page Application scenarios](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-overview).
|
|
36
36
|
|
|
37
|
-
-
|
|
37
|
+
- Before using `@azure/msal-react` you will need to [register a Single Page Application in Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration) to get a valid `clientId` for configuration, and to register the routes that your app will accept redirect traffic on.
|
|
38
38
|
|
|
39
39
|
## Version Support
|
|
40
40
|
|
|
41
|
-
| MSAL React version | MSAL support status | Supported React versions
|
|
42
|
-
| ------------------ | ------------------- |
|
|
43
|
-
| MSAL React
|
|
44
|
-
| MSAL React v1
|
|
41
|
+
| MSAL React version | MSAL support status | Supported React versions |
|
|
42
|
+
| ------------------ | ------------------- | ------------------------ |
|
|
43
|
+
| MSAL React v3 | Active development | 16, 17, 18, 19 |
|
|
44
|
+
| MSAL React v1, v2 | In maintenance | 16, 17, 18 |
|
|
45
45
|
|
|
46
46
|
**Note:** There have been no functional changes in the MSAL React v2 release.
|
|
47
47
|
|
|
@@ -111,11 +111,11 @@ Since `@azure/msal-react` is a wrapper around `@azure/msal-browser` many docs fr
|
|
|
111
111
|
|
|
112
112
|
### Advanced Topics
|
|
113
113
|
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
114
|
+
- [Configuration Options](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md)
|
|
115
|
+
- [Request and Response Details](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/request-response-object.md)
|
|
116
|
+
- [Events](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/events.md)
|
|
117
|
+
- [Cache Storage](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/caching.md)
|
|
118
|
+
- [Performance Enhancements](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/performance.md)
|
|
119
119
|
|
|
120
120
|
### MSAL React Specific Concepts
|
|
121
121
|
|
|
@@ -128,18 +128,18 @@ Since `@azure/msal-react` is a wrapper around `@azure/msal-browser` many docs fr
|
|
|
128
128
|
|
|
129
129
|
Our [samples directory](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples) contains several example apps you can spin up to see how this library can be used in different contexts.
|
|
130
130
|
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
131
|
+
- [Create React App (JS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/react-router-sample)
|
|
132
|
+
- [Create React App (TS) Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/typescript-sample)
|
|
133
|
+
- [Next.js Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/nextjs-sample)
|
|
134
|
+
- [Gatsby Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/gatsby-sample)
|
|
135
|
+
- [B2C Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/b2c-sample)
|
|
136
136
|
|
|
137
137
|
More advanced samples backed with a tutorial can be found in the [Azure Samples](https://github.com/Azure-Samples) space on GitHub:
|
|
138
138
|
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
139
|
+
- [React SPA calling Express.js web API](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/3-Authorization-II/1-call-api)
|
|
140
|
+
- [React SPA calling Express.js web API using App Roles and RBAC](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl/1-call-api-roles)
|
|
141
|
+
- [React SPA calling Microsoft Graph via Express.js web API using on-behalf-of flow](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/6-AdvancedScenarios/1-call-api-obo)
|
|
142
|
+
- [Deployment tutorial for Azure Static Web Apps](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/4-Deployment/2-deploy-static)
|
|
143
143
|
|
|
144
144
|
## Security Reporting
|
|
145
145
|
|
|
@@ -147,7 +147,7 @@ If you find a security issue with our libraries or services please report it to
|
|
|
147
147
|
|
|
148
148
|
## License
|
|
149
149
|
|
|
150
|
-
Copyright (c) Microsoft Corporation.
|
|
150
|
+
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
|
|
151
151
|
|
|
152
152
|
## We Value and Adhere to the Microsoft Open Source Code of Conduct
|
|
153
153
|
|
package/dist/MsalContext.js
CHANGED
package/dist/MsalProvider.js
CHANGED
package/dist/hooks/useAccount.js
CHANGED
package/dist/hooks/useMsal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-react v3.0.
|
|
1
|
+
/*! @azure/msal-react v3.0.12 2025-05-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import { InteractionStatus, InteractionType, EventType, OIDC_DEFAULT_SCOPES, InteractionRequiredAuthError } from '@azure/msal-browser';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@azure/msal-react";
|
|
2
|
-
export declare const version = "3.0.
|
|
2
|
+
export declare const version = "3.0.12";
|
package/dist/packageMetadata.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-react v3.0.
|
|
1
|
+
/*! @azure/msal-react v3.0.12 2025-05-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/* eslint-disable header/header */
|
|
4
4
|
const name = "@azure/msal-react";
|
|
5
|
-
const version = "3.0.
|
|
5
|
+
const version = "3.0.12";
|
|
6
6
|
|
|
7
7
|
export { name, version };
|
|
8
8
|
//# sourceMappingURL=packageMetadata.js.map
|
package/dist/utils/utilities.js
CHANGED
package/lib/msal-react.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-react v3.0.
|
|
1
|
+
/*! @azure/msal-react v3.0.12 2025-05-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -104,7 +104,7 @@ function getAccountByIdentifiers(allAccounts, accountIdentifiers) {
|
|
|
104
104
|
|
|
105
105
|
/* eslint-disable header/header */
|
|
106
106
|
const name = "@azure/msal-react";
|
|
107
|
-
const version = "3.0.
|
|
107
|
+
const version = "3.0.12";
|
|
108
108
|
|
|
109
109
|
/*
|
|
110
110
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@azure/msal-react";
|
|
2
|
-
export declare const version = "3.0.
|
|
2
|
+
export declare const version = "3.0.12";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/msal-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft",
|
|
6
6
|
"email": "nugetaad@microsoft.com",
|
|
@@ -56,26 +56,27 @@
|
|
|
56
56
|
"apiExtractor": "api-extractor run"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@azure/msal-browser": "^4.
|
|
60
|
-
"react": "^16.8.0 || ^17 || ^18"
|
|
59
|
+
"@azure/msal-browser": "^4.12.0",
|
|
60
|
+
"react": "^16.8.0 || ^17 || ^18 || ^19"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@azure/msal-browser": "^4.
|
|
63
|
+
"@azure/msal-browser": "^4.12.0",
|
|
64
64
|
"@microsoft/api-extractor": "^7.43.4",
|
|
65
65
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
66
66
|
"@testing-library/jest-dom": "^5.11.5",
|
|
67
|
-
"@testing-library/react": "^
|
|
67
|
+
"@testing-library/react": "^16.3.0",
|
|
68
68
|
"@types/jest": "^29.5.0",
|
|
69
69
|
"@types/node": "^20.5.1",
|
|
70
|
-
"@types/react": "^
|
|
71
|
-
"@types/react-dom": "^
|
|
70
|
+
"@types/react": "^19.1.2",
|
|
71
|
+
"@types/react-dom": "^19.1.2",
|
|
72
72
|
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
73
73
|
"jest": "^29.5.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.5.0",
|
|
75
|
+
"jest-junit": "^16.0.0",
|
|
75
76
|
"msal-test-utils": "file:../../shared-test-utils",
|
|
76
77
|
"prettier": "2.8.7",
|
|
77
|
-
"react": "^
|
|
78
|
-
"react-dom": "^
|
|
78
|
+
"react": "^19.1.0",
|
|
79
|
+
"react-dom": "^19.1.0",
|
|
79
80
|
"rollup": "^4.22.4",
|
|
80
81
|
"ts-jest": "^29.1.0",
|
|
81
82
|
"ts-jest-resolver": "^2.0.1",
|
package/src/packageMetadata.ts
CHANGED