@equinor/mad-auth 0.2.8 → 0.2.10
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 +18 -0
- package/CODE_OF_CONDUCT.md +25 -30
- package/dist/Expo-AuthSession/authenticationHandler/auth.js +6 -6
- package/dist/Expo-AuthSession/authenticationHandler/index.js +10 -10
- package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.js +3 -3
- package/dist/Expo-AuthSession/authenticationHandler/web/index.js +4 -4
- package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.js +2 -2
- package/dist/Expo-AuthSession/authenticationHandler/web/types.js +1 -1
- package/dist/Expo-AuthSession/components/LoginButton.js +12 -12
- package/dist/Expo-AuthSession/hooks/useAccount.js +11 -11
- package/dist/Expo-AuthSession/hooks/useAuthenticate.js +11 -11
- package/dist/Expo-AuthSession/index.js +14 -14
- package/dist/Expo-AuthSession/store/authStore.js +3 -3
- package/dist/Expo-AuthSession/store/encryption.js +2 -2
- package/dist/Expo-AuthSession/utils/decodeToken.js +2 -2
- package/dist/Expo-AuthSession/utils/tokenRefresh.js +4 -4
- package/dist/_internal/translationLayer.js +1 -1
- package/dist/auth.js +2 -2
- package/dist/{chunk-6KLEJ4JP.js → chunk-52LAPG3S.js} +6 -10
- package/dist/{chunk-EIEVZYBO.js → chunk-7A7RZF24.js} +2 -2
- package/dist/{chunk-U24WP5A2.js → chunk-7KZL6S5R.js} +2 -2
- package/dist/{chunk-J3NCIUSC.js → chunk-7NSJ6UAV.js} +1 -2
- package/dist/{chunk-VQO2TBXX.js → chunk-DNMYY37N.js} +5 -9
- package/dist/{chunk-DWZTCBMU.js → chunk-ELBTMDOI.js} +5 -8
- package/dist/{chunk-RDZCTFA2.js → chunk-FETRYEKH.js} +2 -2
- package/dist/{chunk-QCFF5SRY.js → chunk-IEVUSC3Q.js} +1 -1
- package/dist/{chunk-XOV5UQCQ.js → chunk-IU75T6GM.js} +3 -3
- package/dist/{chunk-JGEEAHZG.js → chunk-K34WGG6L.js} +7 -10
- package/dist/{chunk-YFB5MH7A.js → chunk-PETOX4KF.js} +1 -1
- package/dist/{chunk-43BBXE6P.js → chunk-RBOUHIMW.js} +2 -2
- package/dist/{chunk-A2ITULLZ.js → chunk-UYO5Y6CJ.js} +2 -2
- package/dist/{chunk-YKVRYDSR.js → chunk-W4CNNXDN.js} +1 -1
- package/dist/{chunk-D2PYTQ7Y.js → chunk-WKE5IW37.js} +1 -1
- package/dist/{chunk-UYPL3SZW.js → chunk-XENWB4ZX.js} +5 -8
- package/dist/{chunk-KPETJAHS.js → chunk-YGHNEFH2.js} +8 -8
- package/dist/components/LoginButton.js +4 -4
- package/dist/components/index.js +4 -4
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/useAccount.js +3 -3
- package/dist/hooks/useAuthenticate.js +3 -3
- package/dist/index.js +18 -18
- package/package.json +37 -36
- /package/dist/{chunk-LOPKRCGI.js → chunk-CWMXXUWU.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @equinor/mad-auth
|
|
2
2
|
|
|
3
|
+
## 0.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [49c59fd]
|
|
8
|
+
- @equinor/mad-components@0.17.0
|
|
9
|
+
|
|
10
|
+
## 0.2.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [7ff2d25]
|
|
15
|
+
- Updated dependencies [75df020]
|
|
16
|
+
- Updated dependencies [75df020]
|
|
17
|
+
- Updated dependencies [2ce9392]
|
|
18
|
+
- Updated dependencies [75df020]
|
|
19
|
+
- @equinor/mad-components@0.16.0
|
|
20
|
+
|
|
3
21
|
## 0.2.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,49 +1,44 @@
|
|
|
1
1
|
# How we work
|
|
2
2
|
|
|
3
|
-
In Equinor,
|
|
4
|
-
deliver](https://www.equinor.com/en/careers/our-culture.html).
|
|
3
|
+
In Equinor,
|
|
4
|
+
[how we deliver is as important as what we deliver](https://www.equinor.com/en/careers/our-culture.html).
|
|
5
5
|
|
|
6
|
-
This set the expectations for how we collaborate in our open source projects,
|
|
7
|
-
|
|
8
|
-
project.
|
|
6
|
+
This set the expectations for how we collaborate in our open source projects, and applies to all
|
|
7
|
+
community members and participants in any Equinor maintained project.
|
|
9
8
|
|
|
10
9
|
## Handling issues within the communities
|
|
11
10
|
|
|
12
|
-
We expect all to have a low threshold for raising issues, or in general discuss
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
encourage all community members to appreciate when concerns are raised, and make
|
|
16
|
-
its best effort in solving them.
|
|
11
|
+
We expect all to have a low threshold for raising issues, or in general discuss how we live up to
|
|
12
|
+
our [values](https://www.equinor.com/en/about-us.html#our-values). Equally, we also encourage all
|
|
13
|
+
community members to appreciate when concerns are raised, and make its best effort in solving them.
|
|
17
14
|
|
|
18
|
-
As well as responsibility for what is delivered the project maintainers are also
|
|
19
|
-
|
|
20
|
-
the communities.
|
|
15
|
+
As well as responsibility for what is delivered the project maintainers are also responsible
|
|
16
|
+
creating an environment for proper handling of issues raised within the communities.
|
|
21
17
|
|
|
22
18
|
## Call out for assistance
|
|
23
19
|
|
|
24
|
-
For any problem not directly resolvable within the community, we encourage you
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
For any problem not directly resolvable within the community, we encourage you to call out for
|
|
21
|
+
assistance. Getting an outsiders perspective on the topic might be just what is needed for you to
|
|
22
|
+
proceed.
|
|
27
23
|
|
|
28
|
-
Send an e-mail to opensource_at_equinor.com and invite for a discussion. The
|
|
29
|
-
|
|
24
|
+
Send an e-mail to opensource_at_equinor.com and invite for a discussion. The email will be handled
|
|
25
|
+
by a team within the Equinor organization.
|
|
30
26
|
|
|
31
|
-
Your request will be kept confidential from the team or community in question,
|
|
32
|
-
|
|
27
|
+
Your request will be kept confidential from the team or community in question, unless you chose to
|
|
28
|
+
disclose it yourself.
|
|
33
29
|
|
|
34
30
|
## Ethics helpline
|
|
35
31
|
|
|
36
|
-
In Equinor, we want you to speak up whenever you see unethical behaviour that
|
|
37
|
-
|
|
32
|
+
In Equinor, we want you to speak up whenever you see unethical behaviour that conflicts with our
|
|
33
|
+
values or threatens our reputation.
|
|
38
34
|
|
|
39
|
-
To underline this, we continuously encourage and remind our employees and any
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
To underline this, we continuously encourage and remind our employees and any external third parties
|
|
36
|
+
interacting with us to raise concerns or report any suspected or potential breaches of law or
|
|
37
|
+
company policies.
|
|
42
38
|
|
|
43
|
-
For any questions or issues that one suspect falls outside the scope of
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Ethics
|
|
47
|
-
helpline](https://secure.ethicspoint.eu/domain/media/en/gui/102166/index.html).
|
|
39
|
+
For any questions or issues that one suspect falls outside the scope of behaviour regulated, and
|
|
40
|
+
handled within the open source code of conduct, or you wish to place an anonymous, confidential
|
|
41
|
+
report we encourage to use the
|
|
42
|
+
[Equinor Ethics helpline](https://secure.ethicspoint.eu/domain/media/en/gui/102166/index.html).
|
|
48
43
|
|
|
49
44
|
This helpline is hosted by a third party helpline provider.
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
initiateAuthenticationClient,
|
|
7
7
|
reset,
|
|
8
8
|
signOut
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-K34WGG6L.js";
|
|
10
|
+
import "../../chunk-7NSJ6UAV.js";
|
|
11
|
+
import "../../chunk-FETRYEKH.js";
|
|
12
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
13
|
+
import "../../chunk-WKE5IW37.js";
|
|
14
|
+
import "../../chunk-CWMXXUWU.js";
|
|
15
15
|
export {
|
|
16
16
|
authenticateInteractively,
|
|
17
17
|
authenticateSilently,
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
authenticationClientExists,
|
|
5
5
|
initiateAuthenticationClient,
|
|
6
6
|
signOut
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-7KZL6S5R.js";
|
|
8
|
+
import "../../chunk-PETOX4KF.js";
|
|
9
9
|
import {
|
|
10
10
|
getAccountWeb
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-52LAPG3S.js";
|
|
12
|
+
import "../../chunk-W4CNNXDN.js";
|
|
13
13
|
import "../../chunk-MWXZHQN3.js";
|
|
14
14
|
import {
|
|
15
15
|
getAccount
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
16
|
+
} from "../../chunk-K34WGG6L.js";
|
|
17
|
+
import "../../chunk-7NSJ6UAV.js";
|
|
18
|
+
import "../../chunk-FETRYEKH.js";
|
|
19
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
20
|
+
import "../../chunk-WKE5IW37.js";
|
|
21
21
|
import "../../chunk-7SOSXNKP.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-CWMXXUWU.js";
|
|
23
23
|
export {
|
|
24
24
|
authenticateInteractively,
|
|
25
25
|
authenticateSilently,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getAccountWeb,
|
|
7
7
|
initiateAuthenticationClientWeb,
|
|
8
8
|
signOutWeb
|
|
9
|
-
} from "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
9
|
+
} from "../../../chunk-52LAPG3S.js";
|
|
10
|
+
import "../../../chunk-W4CNNXDN.js";
|
|
11
11
|
import "../../../chunk-MWXZHQN3.js";
|
|
12
12
|
import "../../../chunk-7SOSXNKP.js";
|
|
13
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-CWMXXUWU.js";
|
|
14
14
|
export {
|
|
15
15
|
_resetWeb,
|
|
16
16
|
authenticateInteractivelyWeb,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
web_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-PETOX4KF.js";
|
|
4
4
|
import {
|
|
5
5
|
_resetWeb,
|
|
6
6
|
authenticateInteractivelyWeb,
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
getAccountWeb,
|
|
10
10
|
initiateAuthenticationClientWeb,
|
|
11
11
|
signOutWeb
|
|
12
|
-
} from "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
12
|
+
} from "../../../chunk-52LAPG3S.js";
|
|
13
|
+
import "../../../chunk-W4CNNXDN.js";
|
|
14
14
|
import {
|
|
15
15
|
Ios_MSALWebviewType,
|
|
16
16
|
Ios_ModalPresentationStyle,
|
|
17
17
|
MSALPromptType
|
|
18
18
|
} from "../../../chunk-MWXZHQN3.js";
|
|
19
19
|
import "../../../chunk-7SOSXNKP.js";
|
|
20
|
-
import "../../../chunk-
|
|
20
|
+
import "../../../chunk-CWMXXUWU.js";
|
|
21
21
|
export {
|
|
22
22
|
Ios_MSALWebviewType,
|
|
23
23
|
Ios_ModalPresentationStyle,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PublicClientApplication
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-W4CNNXDN.js";
|
|
4
4
|
import "../../../chunk-MWXZHQN3.js";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-CWMXXUWU.js";
|
|
6
6
|
export {
|
|
7
7
|
PublicClientApplication
|
|
8
8
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginButton
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-UYO5Y6CJ.js";
|
|
4
|
+
import "../../chunk-ELBTMDOI.js";
|
|
5
|
+
import "../../chunk-7KZL6S5R.js";
|
|
6
|
+
import "../../chunk-PETOX4KF.js";
|
|
7
|
+
import "../../chunk-52LAPG3S.js";
|
|
8
|
+
import "../../chunk-W4CNNXDN.js";
|
|
9
9
|
import "../../chunk-MWXZHQN3.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-K34WGG6L.js";
|
|
11
|
+
import "../../chunk-7NSJ6UAV.js";
|
|
12
|
+
import "../../chunk-FETRYEKH.js";
|
|
13
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
14
|
+
import "../../chunk-WKE5IW37.js";
|
|
15
15
|
import "../../chunk-7SOSXNKP.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-CWMXXUWU.js";
|
|
17
17
|
export {
|
|
18
18
|
LoginButton
|
|
19
19
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAccount
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-IU75T6GM.js";
|
|
4
|
+
import "../../chunk-7KZL6S5R.js";
|
|
5
|
+
import "../../chunk-PETOX4KF.js";
|
|
6
|
+
import "../../chunk-52LAPG3S.js";
|
|
7
|
+
import "../../chunk-W4CNNXDN.js";
|
|
8
8
|
import "../../chunk-MWXZHQN3.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-K34WGG6L.js";
|
|
10
|
+
import "../../chunk-7NSJ6UAV.js";
|
|
11
|
+
import "../../chunk-FETRYEKH.js";
|
|
12
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
13
|
+
import "../../chunk-WKE5IW37.js";
|
|
14
14
|
import "../../chunk-7SOSXNKP.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-CWMXXUWU.js";
|
|
16
16
|
export {
|
|
17
17
|
useAccount
|
|
18
18
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAuthenticate
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ELBTMDOI.js";
|
|
4
|
+
import "../../chunk-7KZL6S5R.js";
|
|
5
|
+
import "../../chunk-PETOX4KF.js";
|
|
6
|
+
import "../../chunk-52LAPG3S.js";
|
|
7
|
+
import "../../chunk-W4CNNXDN.js";
|
|
8
8
|
import "../../chunk-MWXZHQN3.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-K34WGG6L.js";
|
|
10
|
+
import "../../chunk-7NSJ6UAV.js";
|
|
11
|
+
import "../../chunk-FETRYEKH.js";
|
|
12
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
13
|
+
import "../../chunk-WKE5IW37.js";
|
|
14
14
|
import "../../chunk-7SOSXNKP.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-CWMXXUWU.js";
|
|
16
16
|
export {
|
|
17
17
|
useAuthenticate
|
|
18
18
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-YGHNEFH2.js";
|
|
2
2
|
import {
|
|
3
3
|
LoginButton
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UYO5Y6CJ.js";
|
|
5
5
|
import {
|
|
6
6
|
useAccount
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-IU75T6GM.js";
|
|
8
8
|
import {
|
|
9
9
|
useAuthenticate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-ELBTMDOI.js";
|
|
11
11
|
import {
|
|
12
12
|
authenticateInteractively,
|
|
13
13
|
authenticateSilently,
|
|
14
14
|
authenticationClientExists,
|
|
15
15
|
initiateAuthenticationClient,
|
|
16
16
|
signOut
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-7KZL6S5R.js";
|
|
18
|
+
import "../chunk-PETOX4KF.js";
|
|
19
19
|
import {
|
|
20
20
|
getAccountWeb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-52LAPG3S.js";
|
|
22
|
+
import "../chunk-W4CNNXDN.js";
|
|
23
23
|
import "../chunk-MWXZHQN3.js";
|
|
24
24
|
import {
|
|
25
25
|
getAccount
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-K34WGG6L.js";
|
|
27
|
+
import "../chunk-7NSJ6UAV.js";
|
|
28
|
+
import "../chunk-FETRYEKH.js";
|
|
29
29
|
import {
|
|
30
30
|
getConfig,
|
|
31
31
|
getDiscovery,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
setToken,
|
|
41
41
|
setUserData,
|
|
42
42
|
useAuth
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-IEVUSC3Q.js";
|
|
44
|
+
import "../chunk-WKE5IW37.js";
|
|
45
45
|
import "../chunk-NP4GJ5X5.js";
|
|
46
46
|
import "../chunk-7SOSXNKP.js";
|
|
47
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-CWMXXUWU.js";
|
|
48
48
|
export {
|
|
49
49
|
LoginButton,
|
|
50
50
|
authenticateInteractively,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
setToken,
|
|
13
13
|
setUserData,
|
|
14
14
|
useAuth
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-IEVUSC3Q.js";
|
|
16
|
+
import "../../chunk-WKE5IW37.js";
|
|
17
|
+
import "../../chunk-CWMXXUWU.js";
|
|
18
18
|
export {
|
|
19
19
|
getConfig,
|
|
20
20
|
getDiscovery,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokenRefresh
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FETRYEKH.js";
|
|
4
|
+
import "../../chunk-IEVUSC3Q.js";
|
|
5
|
+
import "../../chunk-WKE5IW37.js";
|
|
6
|
+
import "../../chunk-CWMXXUWU.js";
|
|
7
7
|
export {
|
|
8
8
|
tokenRefresh
|
|
9
9
|
};
|
package/dist/auth.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
getAccount,
|
|
7
7
|
initiateAuthenticationClient,
|
|
8
8
|
signOut
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DNMYY37N.js";
|
|
10
10
|
import "./chunk-7SOSXNKP.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CWMXXUWU.js";
|
|
12
12
|
export {
|
|
13
13
|
_reset,
|
|
14
14
|
authenticateInteractively,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PublicClientApplication
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W4CNNXDN.js";
|
|
4
4
|
import {
|
|
5
5
|
getMadAccount,
|
|
6
6
|
getMadAuthenticationResult
|
|
7
7
|
} from "./chunk-7SOSXNKP.js";
|
|
8
8
|
import {
|
|
9
9
|
__async
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CWMXXUWU.js";
|
|
11
11
|
|
|
12
12
|
// src/Expo-AuthSession/authenticationHandler/web/authWeb.ts
|
|
13
13
|
var pca = null;
|
|
@@ -26,8 +26,7 @@ function _getMsalAccount() {
|
|
|
26
26
|
function _getMadAccountFromMSAL() {
|
|
27
27
|
return __async(this, null, function* () {
|
|
28
28
|
const msalAccount = yield _getMsalAccount();
|
|
29
|
-
if (msalAccount)
|
|
30
|
-
return getMadAccount(msalAccount);
|
|
29
|
+
if (msalAccount) return getMadAccount(msalAccount);
|
|
31
30
|
return null;
|
|
32
31
|
});
|
|
33
32
|
}
|
|
@@ -36,8 +35,7 @@ function initiateAuthenticationClientWeb({
|
|
|
36
35
|
redirectUri,
|
|
37
36
|
authority = "https://login.microsoftonline.com/statoilsrm.onmicrosoft.com/"
|
|
38
37
|
}) {
|
|
39
|
-
if (authenticationClientExistsWeb())
|
|
40
|
-
return;
|
|
38
|
+
if (authenticationClientExistsWeb()) return;
|
|
41
39
|
const config = {
|
|
42
40
|
auth: {
|
|
43
41
|
authority,
|
|
@@ -63,8 +61,7 @@ function authenticateInteractivelyWeb(scopes) {
|
|
|
63
61
|
const result = yield pca.acquireToken({
|
|
64
62
|
scopes
|
|
65
63
|
});
|
|
66
|
-
if (!result)
|
|
67
|
-
return null;
|
|
64
|
+
if (!result) return null;
|
|
68
65
|
return getMadAuthenticationResult(result);
|
|
69
66
|
});
|
|
70
67
|
}
|
|
@@ -88,8 +85,7 @@ function authenticateSilentlyWeb(scopes) {
|
|
|
88
85
|
const result = yield pca.acquireTokenSilent(params).catch((e) => {
|
|
89
86
|
console.log("Error while fetching token silently", e);
|
|
90
87
|
}).then((res) => res);
|
|
91
|
-
if (!result)
|
|
92
|
-
return null;
|
|
88
|
+
if (!result) return null;
|
|
93
89
|
return getMadAuthenticationResult(result);
|
|
94
90
|
}
|
|
95
91
|
return null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAuthenticate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XENWB4ZX.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadValues
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWMXXUWU.js";
|
|
8
8
|
|
|
9
9
|
// src/components/LoginButton.tsx
|
|
10
10
|
import React from "react";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
authenticationClientExistsWeb,
|
|
5
5
|
initiateAuthenticationClientWeb,
|
|
6
6
|
signOutWeb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-52LAPG3S.js";
|
|
8
8
|
import {
|
|
9
9
|
authenticateInteractively,
|
|
10
10
|
authenticateSilently,
|
|
11
11
|
authenticationClientExists,
|
|
12
12
|
initiateAuthenticationClient,
|
|
13
13
|
signOut
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K34WGG6L.js";
|
|
15
15
|
|
|
16
16
|
// src/Expo-AuthSession/authenticationHandler/index.ts
|
|
17
17
|
import { Platform } from "react-native";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-7SOSXNKP.js";
|
|
5
5
|
import {
|
|
6
6
|
__async
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWMXXUWU.js";
|
|
8
8
|
|
|
9
9
|
// src/auth.ts
|
|
10
10
|
import PublicClientApplication from "react-native-msal";
|
|
@@ -25,8 +25,7 @@ function _getMsalAccount() {
|
|
|
25
25
|
function _getMadAccountFromMSAL() {
|
|
26
26
|
return __async(this, null, function* () {
|
|
27
27
|
const msalAccount = yield _getMsalAccount();
|
|
28
|
-
if (msalAccount)
|
|
29
|
-
return getMadAccount(msalAccount);
|
|
28
|
+
if (msalAccount) return getMadAccount(msalAccount);
|
|
30
29
|
return null;
|
|
31
30
|
});
|
|
32
31
|
}
|
|
@@ -36,8 +35,7 @@ function initiateAuthenticationClient(_0) {
|
|
|
36
35
|
redirectUri,
|
|
37
36
|
authority = "https://login.microsoftonline.com/statoilsrm.onmicrosoft.com/"
|
|
38
37
|
}) {
|
|
39
|
-
if (authenticationClientExists())
|
|
40
|
-
return;
|
|
38
|
+
if (authenticationClientExists()) return;
|
|
41
39
|
const config = {
|
|
42
40
|
auth: {
|
|
43
41
|
authority,
|
|
@@ -61,8 +59,7 @@ function authenticateInteractively(scopes) {
|
|
|
61
59
|
const result = yield pca.acquireToken({
|
|
62
60
|
scopes
|
|
63
61
|
});
|
|
64
|
-
if (!result)
|
|
65
|
-
return null;
|
|
62
|
+
if (!result) return null;
|
|
66
63
|
return getMadAuthenticationResult(result);
|
|
67
64
|
});
|
|
68
65
|
}
|
|
@@ -86,8 +83,7 @@ function authenticateSilently(scopes) {
|
|
|
86
83
|
const result = yield pca.acquireTokenSilent(params).catch((e) => {
|
|
87
84
|
console.log("Error while fetching token silently", e);
|
|
88
85
|
}).then((res) => res);
|
|
89
|
-
if (!result)
|
|
90
|
-
return null;
|
|
86
|
+
if (!result) return null;
|
|
91
87
|
return getMadAuthenticationResult(result);
|
|
92
88
|
}
|
|
93
89
|
return null;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
authenticateSilently,
|
|
4
4
|
authenticationClientExists,
|
|
5
5
|
initiateAuthenticationClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7KZL6S5R.js";
|
|
7
7
|
import {
|
|
8
8
|
__async
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWMXXUWU.js";
|
|
10
10
|
|
|
11
11
|
// src/Expo-AuthSession/hooks/useAuthenticate.ts
|
|
12
12
|
import { useAutoDiscovery } from "expo-auth-session";
|
|
@@ -26,11 +26,9 @@ var useAuthenticate = ({
|
|
|
26
26
|
setAuthenticationInProgress(true);
|
|
27
27
|
try {
|
|
28
28
|
const res = yield promise();
|
|
29
|
-
if (res)
|
|
30
|
-
onAuthenticationSuccessful(res, type);
|
|
29
|
+
if (res) onAuthenticationSuccessful(res, type);
|
|
31
30
|
} catch (e) {
|
|
32
|
-
if (type === "MANUAL")
|
|
33
|
-
onAuthenticationFailed(e);
|
|
31
|
+
if (type === "MANUAL") onAuthenticationFailed(e);
|
|
34
32
|
} finally {
|
|
35
33
|
setAuthenticationInProgress(false);
|
|
36
34
|
}
|
|
@@ -38,8 +36,7 @@ var useAuthenticate = ({
|
|
|
38
36
|
useEffect(() => {
|
|
39
37
|
const initiateClientAndMaybeAuthenticateSilently = () => __async(void 0, null, function* () {
|
|
40
38
|
initiateAuthenticationClient(config, discovery);
|
|
41
|
-
if (authenticationClientExists())
|
|
42
|
-
setAuthenticationClientInitialized(true);
|
|
39
|
+
if (authenticationClientExists()) setAuthenticationClientInitialized(true);
|
|
43
40
|
if (enableAutomaticAuthentication)
|
|
44
41
|
yield withAuthenticationPromiseHandler(
|
|
45
42
|
() => authenticateSilently(config.scopes),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfig,
|
|
3
3
|
getDiscovery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IEVUSC3Q.js";
|
|
5
5
|
import {
|
|
6
6
|
__async
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWMXXUWU.js";
|
|
8
8
|
|
|
9
9
|
// src/Expo-AuthSession/utils/tokenRefresh.ts
|
|
10
10
|
var tokenRefresh = (token) => __async(void 0, null, function* () {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAccountWeb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-52LAPG3S.js";
|
|
4
4
|
import {
|
|
5
5
|
useAuth
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IEVUSC3Q.js";
|
|
7
7
|
import {
|
|
8
8
|
__async
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWMXXUWU.js";
|
|
10
10
|
|
|
11
11
|
// src/Expo-AuthSession/hooks/useAccount.ts
|
|
12
12
|
import { useEffect, useState } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7NSJ6UAV.js";
|
|
4
4
|
import {
|
|
5
5
|
tokenRefresh
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FETRYEKH.js";
|
|
7
7
|
import {
|
|
8
8
|
getConfig,
|
|
9
9
|
getDiscovery,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
setDiscovery,
|
|
18
18
|
setToken,
|
|
19
19
|
setUserData
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IEVUSC3Q.js";
|
|
21
21
|
import {
|
|
22
22
|
__async
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CWMXXUWU.js";
|
|
24
24
|
|
|
25
25
|
// src/Expo-AuthSession/authenticationHandler/auth.ts
|
|
26
26
|
import {
|
|
@@ -39,8 +39,7 @@ function authenticationClientExists() {
|
|
|
39
39
|
var authenticateInteractively = () => __async(void 0, null, function* () {
|
|
40
40
|
const discovery = getDiscovery();
|
|
41
41
|
const config = getConfig();
|
|
42
|
-
if (!discovery || !config)
|
|
43
|
-
return null;
|
|
42
|
+
if (!discovery || !config) return null;
|
|
44
43
|
const authRequest = new AuthRequest(config);
|
|
45
44
|
const codeResponse = yield authRequest.promptAsync(discovery);
|
|
46
45
|
if ((codeResponse == null ? void 0 : codeResponse.type) === "success") {
|
|
@@ -52,8 +51,7 @@ var authenticateInteractively = () => __async(void 0, null, function* () {
|
|
|
52
51
|
};
|
|
53
52
|
const tokenResponse = yield exchangeCodeAsync(accessTokenConfig, discovery);
|
|
54
53
|
const userData = decodeToken(tokenResponse.idToken);
|
|
55
|
-
if (!userData)
|
|
56
|
-
return null;
|
|
54
|
+
if (!userData) return null;
|
|
57
55
|
setUserData(userData);
|
|
58
56
|
setToken(tokenResponse);
|
|
59
57
|
return { account: userData, accessToken: tokenResponse.accessToken };
|
|
@@ -63,8 +61,7 @@ var authenticateInteractively = () => __async(void 0, null, function* () {
|
|
|
63
61
|
var authenticateSilently = () => __async(void 0, null, function* () {
|
|
64
62
|
const userData = getUserData();
|
|
65
63
|
const token = getToken();
|
|
66
|
-
if (!userData || !token)
|
|
67
|
-
return null;
|
|
64
|
+
if (!userData || !token) return null;
|
|
68
65
|
if (TokenResponse.isTokenFresh(token)) {
|
|
69
66
|
return { account: userData, accessToken: token.accessToken };
|
|
70
67
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAuthenticate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ELBTMDOI.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadValues
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWMXXUWU.js";
|
|
8
8
|
|
|
9
9
|
// src/Expo-AuthSession/components/LoginButton.tsx
|
|
10
10
|
import React from "react";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__objRest,
|
|
4
4
|
__spreadProps,
|
|
5
5
|
__spreadValues
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CWMXXUWU.js";
|
|
7
7
|
|
|
8
8
|
// src/Expo-AuthSession/authenticationHandler/web/publicClientApplication.ts
|
|
9
9
|
import { PublicClientApplication as MSALPublicClientApplication } from "@azure/msal-browser";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
authenticateSilently,
|
|
4
4
|
authenticationClientExists,
|
|
5
5
|
initiateAuthenticationClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DNMYY37N.js";
|
|
7
7
|
import {
|
|
8
8
|
__async
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWMXXUWU.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/useAuthenticate.ts
|
|
12
12
|
import { useEffect, useState } from "react";
|
|
@@ -24,11 +24,9 @@ var useAuthenticate = ({
|
|
|
24
24
|
setAuthenticationInProgress(true);
|
|
25
25
|
try {
|
|
26
26
|
const res = yield promise;
|
|
27
|
-
if (res)
|
|
28
|
-
onAuthenticationSuccessful(res, type);
|
|
27
|
+
if (res) onAuthenticationSuccessful(res, type);
|
|
29
28
|
} catch (e) {
|
|
30
|
-
if (type === "MANUAL")
|
|
31
|
-
onAuthenticationFailed(e);
|
|
29
|
+
if (type === "MANUAL") onAuthenticationFailed(e);
|
|
32
30
|
} finally {
|
|
33
31
|
setAuthenticationInProgress(false);
|
|
34
32
|
}
|
|
@@ -39,8 +37,7 @@ var useAuthenticate = ({
|
|
|
39
37
|
clientId,
|
|
40
38
|
redirectUri
|
|
41
39
|
});
|
|
42
|
-
if (authenticationClientExists())
|
|
43
|
-
setAuthenticationClientInitialized(true);
|
|
40
|
+
if (authenticationClientExists()) setAuthenticationClientInitialized(true);
|
|
44
41
|
if (enableAutomaticAuthentication)
|
|
45
42
|
void withAuthenticationPromiseHandler(authenticateSilently(scopes), "AUTOMATIC");
|
|
46
43
|
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UYO5Y6CJ.js";
|
|
4
4
|
import {
|
|
5
5
|
useAccount
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IU75T6GM.js";
|
|
7
7
|
import {
|
|
8
8
|
useAuthenticate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ELBTMDOI.js";
|
|
10
10
|
import {
|
|
11
11
|
authenticateInteractively,
|
|
12
12
|
authenticateSilently,
|
|
13
13
|
authenticationClientExists,
|
|
14
14
|
initiateAuthenticationClient,
|
|
15
15
|
signOut
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7KZL6S5R.js";
|
|
17
17
|
import {
|
|
18
18
|
getAccountWeb
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-52LAPG3S.js";
|
|
20
20
|
import {
|
|
21
21
|
getAccount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-K34WGG6L.js";
|
|
23
23
|
import {
|
|
24
24
|
getConfig,
|
|
25
25
|
getDiscovery,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
setToken,
|
|
35
35
|
setUserData,
|
|
36
36
|
useAuth
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IEVUSC3Q.js";
|
|
38
38
|
import {
|
|
39
39
|
__export
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CWMXXUWU.js";
|
|
41
41
|
|
|
42
42
|
// src/Expo-AuthSession/index.ts
|
|
43
43
|
var Expo_AuthSession_exports = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginButton
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7A7RZF24.js";
|
|
4
|
+
import "../chunk-XENWB4ZX.js";
|
|
5
|
+
import "../chunk-DNMYY37N.js";
|
|
6
6
|
import "../chunk-7SOSXNKP.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CWMXXUWU.js";
|
|
8
8
|
export {
|
|
9
9
|
LoginButton
|
|
10
10
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-HAB34YS7.js";
|
|
2
2
|
import {
|
|
3
3
|
LoginButton
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7A7RZF24.js";
|
|
5
|
+
import "../chunk-XENWB4ZX.js";
|
|
6
|
+
import "../chunk-DNMYY37N.js";
|
|
7
7
|
import "../chunk-7SOSXNKP.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-CWMXXUWU.js";
|
|
9
9
|
export {
|
|
10
10
|
LoginButton
|
|
11
11
|
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-GUKC6UGZ.js";
|
|
2
2
|
import {
|
|
3
3
|
useAccount
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RBOUHIMW.js";
|
|
5
5
|
import {
|
|
6
6
|
useAuthenticate
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-XENWB4ZX.js";
|
|
8
|
+
import "../chunk-DNMYY37N.js";
|
|
9
9
|
import "../chunk-7SOSXNKP.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CWMXXUWU.js";
|
|
11
11
|
export {
|
|
12
12
|
useAccount,
|
|
13
13
|
useAuthenticate
|
package/dist/hooks/useAccount.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAccount
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-RBOUHIMW.js";
|
|
4
|
+
import "../chunk-DNMYY37N.js";
|
|
5
5
|
import "../chunk-7SOSXNKP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-CWMXXUWU.js";
|
|
7
7
|
export {
|
|
8
8
|
useAccount
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAuthenticate
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-XENWB4ZX.js";
|
|
4
|
+
import "../chunk-DNMYY37N.js";
|
|
5
5
|
import "../chunk-7SOSXNKP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-CWMXXUWU.js";
|
|
7
7
|
export {
|
|
8
8
|
useAuthenticate
|
|
9
9
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import "./chunk-GUKC6UGZ.js";
|
|
2
2
|
import {
|
|
3
3
|
useAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RBOUHIMW.js";
|
|
5
5
|
import "./chunk-6F4PWJZI.js";
|
|
6
6
|
import {
|
|
7
7
|
Expo_AuthSession_exports
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-YGHNEFH2.js";
|
|
9
|
+
import "./chunk-UYO5Y6CJ.js";
|
|
10
|
+
import "./chunk-IU75T6GM.js";
|
|
11
|
+
import "./chunk-ELBTMDOI.js";
|
|
12
|
+
import "./chunk-7KZL6S5R.js";
|
|
13
|
+
import "./chunk-PETOX4KF.js";
|
|
14
|
+
import "./chunk-52LAPG3S.js";
|
|
15
|
+
import "./chunk-W4CNNXDN.js";
|
|
16
16
|
import "./chunk-MWXZHQN3.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-K34WGG6L.js";
|
|
18
|
+
import "./chunk-7NSJ6UAV.js";
|
|
19
|
+
import "./chunk-FETRYEKH.js";
|
|
20
|
+
import "./chunk-IEVUSC3Q.js";
|
|
21
|
+
import "./chunk-WKE5IW37.js";
|
|
22
22
|
import "./chunk-NP4GJ5X5.js";
|
|
23
23
|
import "./chunk-HAB34YS7.js";
|
|
24
24
|
import {
|
|
25
25
|
LoginButton
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7A7RZF24.js";
|
|
27
27
|
import {
|
|
28
28
|
useAuthenticate
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XENWB4ZX.js";
|
|
30
30
|
import {
|
|
31
31
|
authenticateInteractively,
|
|
32
32
|
authenticateSilently,
|
|
@@ -34,9 +34,9 @@ import {
|
|
|
34
34
|
getAccount,
|
|
35
35
|
initiateAuthenticationClient,
|
|
36
36
|
signOut
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DNMYY37N.js";
|
|
38
38
|
import "./chunk-7SOSXNKP.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-CWMXXUWU.js";
|
|
40
40
|
export {
|
|
41
41
|
Expo_AuthSession_exports as ExpoAuthSession,
|
|
42
42
|
LoginButton,
|
package/package.json
CHANGED
|
@@ -1,42 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/mad-auth",
|
|
3
|
-
"version": "0.2.8",
|
|
4
3
|
"description": "A simple wrapper library for react-native-msal",
|
|
5
|
-
"
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
|
|
8
|
-
"test": "jest",
|
|
9
|
-
"dev": "tsup-node --watch --clean=false",
|
|
10
|
-
"lint": "eslint src/",
|
|
11
|
-
"clean": "rm -rf node_modules dist .turbo"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"react native",
|
|
15
|
-
"authentication",
|
|
16
|
-
"typescript",
|
|
17
|
-
"msal"
|
|
18
|
-
],
|
|
4
|
+
"version": "0.2.10",
|
|
19
5
|
"author": {
|
|
20
6
|
"name": "Equinor Mobile App Delivery team (MAD)"
|
|
21
7
|
},
|
|
22
|
-
"
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/equinor/mad/issues"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/equinor/mad/",
|
|
27
|
-
"main": "./dist/index.js",
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"expo-auth-session": ">=5.0",
|
|
31
|
-
"expo-crypto": ">=12.0",
|
|
32
|
-
"react": ">=18.0",
|
|
33
|
-
"react-dom": ">=18.0",
|
|
34
|
-
"react-native": ">=0.70",
|
|
35
|
-
"react-native-msal": "*"
|
|
36
|
-
},
|
|
8
|
+
"bugs": "https://github.com/equinor/mad/issues",
|
|
37
9
|
"dependencies": {
|
|
38
10
|
"@equinor/mad-components": "*",
|
|
39
|
-
"@react-native-async-storage/async-storage": "
|
|
11
|
+
"@react-native-async-storage/async-storage": "1.23.1",
|
|
40
12
|
"@types/aes-js": "^3.1.4",
|
|
41
13
|
"aes-js": "^3.1.2",
|
|
42
14
|
"core-js": "^3.37.0",
|
|
@@ -46,20 +18,49 @@
|
|
|
46
18
|
"zustand": "^4.5.2"
|
|
47
19
|
},
|
|
48
20
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.
|
|
21
|
+
"@babel/core": "^7.25.2",
|
|
50
22
|
"@equinor/eslint-config-mad": "*",
|
|
23
|
+
"@equinor/mad-tsconfig": "*",
|
|
51
24
|
"@testing-library/jest-native": "^5.4.3",
|
|
52
25
|
"@testing-library/react": "^14.0.0",
|
|
53
26
|
"@testing-library/react-native": "^12.3.0",
|
|
54
27
|
"@types/showdown": "^2.0.0",
|
|
55
|
-
"
|
|
56
|
-
"jest
|
|
57
|
-
"
|
|
28
|
+
"eslint": "^8.46.0",
|
|
29
|
+
"jest": "^29.7.0",
|
|
30
|
+
"jest-expo": "~52.0.1",
|
|
31
|
+
"react-test-renderer": "18.2.0",
|
|
32
|
+
"tsup": "^8.3.5"
|
|
58
33
|
},
|
|
59
34
|
"files": [
|
|
60
35
|
"CODE_OF_CONDUCT.md",
|
|
61
36
|
"LICENSE",
|
|
62
37
|
"CHANGELOG.md",
|
|
63
38
|
"dist"
|
|
64
|
-
]
|
|
39
|
+
],
|
|
40
|
+
"homepage": "https://github.com/equinor/mad/",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"authentication",
|
|
43
|
+
"msal",
|
|
44
|
+
"react native",
|
|
45
|
+
"typescript"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"main": "./dist/index.js",
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"expo-auth-session": "~6.0.0",
|
|
51
|
+
"expo-crypto": "~14.0.1",
|
|
52
|
+
"react": "18.3.1",
|
|
53
|
+
"react-dom": "18.3.1",
|
|
54
|
+
"react-native": "0.76.3",
|
|
55
|
+
"react-native-msal": "*"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
|
|
59
|
+
"clean": "rm -rf node_modules dist .turbo",
|
|
60
|
+
"dev": "tsup-node --watch --clean=false",
|
|
61
|
+
"lint": "eslint src/",
|
|
62
|
+
"test": "jest"
|
|
63
|
+
},
|
|
64
|
+
"type": "module",
|
|
65
|
+
"types": "./dist/index.d.ts"
|
|
65
66
|
}
|
|
File without changes
|