@widergy/react-social-auth 3.0.0 → 3.1.1
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.1.1](https://github.com/widergy/react-social-auth/compare/v3.1.0...v3.1.1) (2024-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix msal-browser version ([#21](https://github.com/widergy/react-social-auth/issues/21)) ([1f10521](https://github.com/widergy/react-social-auth/commit/1f105211fea10fcb0e96ea4c70fa747f968bb5a3))
|
|
7
|
+
|
|
8
|
+
# [3.1.0](https://github.com/widergy/react-social-auth/compare/v3.0.0...v3.1.0) (2023-11-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* public client application pre-instanced ([#20](https://github.com/widergy/react-social-auth/issues/20)) ([1477428](https://github.com/widergy/react-social-auth/commit/1477428bcfe238ec5f3f85da0948d48eab5998bd))
|
|
14
|
+
|
|
1
15
|
# [3.0.0](https://github.com/widergy/react-social-auth/compare/v2.2.1...v3.0.0) (2023-11-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -18,9 +18,10 @@ const ActiveDirectory = _ref => {
|
|
|
18
18
|
onFailure,
|
|
19
19
|
clientId,
|
|
20
20
|
redirectUri,
|
|
21
|
-
scopes
|
|
21
|
+
scopes,
|
|
22
|
+
publicClientApplicationInstanced
|
|
22
23
|
} = _ref;
|
|
23
|
-
const [publicClientApplication] = (0, _react.useState)(new _msalBrowser.PublicClientApplication({
|
|
24
|
+
const [publicClientApplication] = (0, _react.useState)(publicClientApplicationInstanced !== null && publicClientApplicationInstanced !== void 0 ? publicClientApplicationInstanced : new _msalBrowser.PublicClientApplication({
|
|
24
25
|
auth: {
|
|
25
26
|
clientId,
|
|
26
27
|
redirectUri,
|
|
@@ -45,7 +46,9 @@ const ActiveDirectory = _ref => {
|
|
|
45
46
|
account
|
|
46
47
|
});
|
|
47
48
|
onSuccess({
|
|
48
|
-
access_token: silentResult.accessToken
|
|
49
|
+
access_token: silentResult.accessToken,
|
|
50
|
+
id_token: silentResult.idToken,
|
|
51
|
+
home_account_id: selectedAccount.homeAccountId
|
|
49
52
|
});
|
|
50
53
|
} catch (err) {
|
|
51
54
|
if (onFailure) onFailure((0, _utils.normalizeError)(err));
|
|
@@ -74,6 +77,7 @@ ActiveDirectory.propTypes = {
|
|
|
74
77
|
onFailure: _propTypes.func,
|
|
75
78
|
clientId: _propTypes.string,
|
|
76
79
|
redirectUri: _propTypes.string,
|
|
77
|
-
scopes: (0, _propTypes.arrayOf)(_propTypes.string)
|
|
80
|
+
scopes: (0, _propTypes.arrayOf)(_propTypes.string),
|
|
81
|
+
publicClientApplicationInstanced: (0, _propTypes.instanceOf)(_msalBrowser.PublicClientApplication)
|
|
78
82
|
};
|
|
79
83
|
var _default = exports.default = ActiveDirectory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/react-social-auth",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Social Network Authorization (Twitter, Facebook, etc.)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"not op_mini all"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@azure/msal-browser": "
|
|
61
|
+
"@azure/msal-browser": "3.0.0",
|
|
62
62
|
"@react-oauth/google": "^0.11.1",
|
|
63
63
|
"@widergy/energy-ui": "^3.0.0",
|
|
64
64
|
"@widergy/web-utils": "^2.0.0",
|