@equinor/mad-auth 0.2.8 → 0.2.9

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/CODE_OF_CONDUCT.md +25 -30
  3. package/dist/Expo-AuthSession/authenticationHandler/auth.js +6 -6
  4. package/dist/Expo-AuthSession/authenticationHandler/index.js +10 -10
  5. package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.js +3 -3
  6. package/dist/Expo-AuthSession/authenticationHandler/web/index.js +4 -4
  7. package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.js +2 -2
  8. package/dist/Expo-AuthSession/authenticationHandler/web/types.js +1 -1
  9. package/dist/Expo-AuthSession/components/LoginButton.js +12 -12
  10. package/dist/Expo-AuthSession/hooks/useAccount.js +11 -11
  11. package/dist/Expo-AuthSession/hooks/useAuthenticate.js +11 -11
  12. package/dist/Expo-AuthSession/index.js +14 -14
  13. package/dist/Expo-AuthSession/store/authStore.js +3 -3
  14. package/dist/Expo-AuthSession/store/encryption.js +2 -2
  15. package/dist/Expo-AuthSession/utils/decodeToken.js +2 -2
  16. package/dist/Expo-AuthSession/utils/tokenRefresh.js +4 -4
  17. package/dist/_internal/translationLayer.js +1 -1
  18. package/dist/auth.js +2 -2
  19. package/dist/{chunk-6KLEJ4JP.js → chunk-52LAPG3S.js} +6 -10
  20. package/dist/{chunk-EIEVZYBO.js → chunk-7A7RZF24.js} +2 -2
  21. package/dist/{chunk-U24WP5A2.js → chunk-7KZL6S5R.js} +2 -2
  22. package/dist/{chunk-J3NCIUSC.js → chunk-7NSJ6UAV.js} +1 -2
  23. package/dist/{chunk-VQO2TBXX.js → chunk-DNMYY37N.js} +5 -9
  24. package/dist/{chunk-DWZTCBMU.js → chunk-ELBTMDOI.js} +5 -8
  25. package/dist/{chunk-RDZCTFA2.js → chunk-FETRYEKH.js} +2 -2
  26. package/dist/{chunk-QCFF5SRY.js → chunk-IEVUSC3Q.js} +1 -1
  27. package/dist/{chunk-XOV5UQCQ.js → chunk-IU75T6GM.js} +3 -3
  28. package/dist/{chunk-JGEEAHZG.js → chunk-K34WGG6L.js} +7 -10
  29. package/dist/{chunk-YFB5MH7A.js → chunk-PETOX4KF.js} +1 -1
  30. package/dist/{chunk-43BBXE6P.js → chunk-RBOUHIMW.js} +2 -2
  31. package/dist/{chunk-A2ITULLZ.js → chunk-UYO5Y6CJ.js} +2 -2
  32. package/dist/{chunk-YKVRYDSR.js → chunk-W4CNNXDN.js} +1 -1
  33. package/dist/{chunk-D2PYTQ7Y.js → chunk-WKE5IW37.js} +1 -1
  34. package/dist/{chunk-UYPL3SZW.js → chunk-XENWB4ZX.js} +5 -8
  35. package/dist/{chunk-KPETJAHS.js → chunk-YGHNEFH2.js} +8 -8
  36. package/dist/components/LoginButton.js +4 -4
  37. package/dist/components/index.js +4 -4
  38. package/dist/hooks/index.js +4 -4
  39. package/dist/hooks/useAccount.js +3 -3
  40. package/dist/hooks/useAuthenticate.js +3 -3
  41. package/dist/index.js +18 -18
  42. package/package.json +37 -36
  43. /package/dist/{chunk-LOPKRCGI.js → chunk-CWMXXUWU.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @equinor/mad-auth
2
2
 
3
+ ## 0.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7ff2d25]
8
+ - Updated dependencies [75df020]
9
+ - Updated dependencies [75df020]
10
+ - Updated dependencies [2ce9392]
11
+ - Updated dependencies [75df020]
12
+ - @equinor/mad-components@0.16.0
13
+
3
14
  ## 0.2.8
4
15
 
5
16
  ### Patch Changes
@@ -1,49 +1,44 @@
1
1
  # How we work
2
2
 
3
- In Equinor, [how we deliver is as important as what we
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
- and applies to all community members and participants in any Equinor maintained
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
- how we live up to our
14
- [values](https://www.equinor.com/en/about-us.html#our-values). Equally, we also
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
- responsible creating an environment for proper handling of issues raised within
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
- to call out for assistance. Getting an outsiders perspective on the topic might
26
- be just what is needed for you to proceed.
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
- email will be handled by a team within the Equinor organization.
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
- unless you chose to disclose it yourself.
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
- conflicts with our values or threatens our reputation.
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
- external third parties interacting with us to raise concerns or report any
41
- suspected or potential breaches of law or company policies.
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
- behaviour regulated, and handled within the open source code of conduct, or you
45
- wish to place an anonymous, confidential report we encourage to use the [Equinor
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-JGEEAHZG.js";
10
- import "../../chunk-J3NCIUSC.js";
11
- import "../../chunk-RDZCTFA2.js";
12
- import "../../chunk-QCFF5SRY.js";
13
- import "../../chunk-D2PYTQ7Y.js";
14
- import "../../chunk-LOPKRCGI.js";
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-U24WP5A2.js";
8
- import "../../chunk-YFB5MH7A.js";
7
+ } from "../../chunk-7KZL6S5R.js";
8
+ import "../../chunk-PETOX4KF.js";
9
9
  import {
10
10
  getAccountWeb
11
- } from "../../chunk-6KLEJ4JP.js";
12
- import "../../chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
17
- import "../../chunk-J3NCIUSC.js";
18
- import "../../chunk-RDZCTFA2.js";
19
- import "../../chunk-QCFF5SRY.js";
20
- import "../../chunk-D2PYTQ7Y.js";
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-LOPKRCGI.js";
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-6KLEJ4JP.js";
10
- import "../../../chunk-YKVRYDSR.js";
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-LOPKRCGI.js";
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-YFB5MH7A.js";
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-6KLEJ4JP.js";
13
- import "../../../chunk-YKVRYDSR.js";
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-LOPKRCGI.js";
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-YKVRYDSR.js";
3
+ } from "../../../chunk-W4CNNXDN.js";
4
4
  import "../../../chunk-MWXZHQN3.js";
5
- import "../../../chunk-LOPKRCGI.js";
5
+ import "../../../chunk-CWMXXUWU.js";
6
6
  export {
7
7
  PublicClientApplication
8
8
  };
@@ -3,7 +3,7 @@ import {
3
3
  Ios_ModalPresentationStyle,
4
4
  MSALPromptType
5
5
  } from "../../../chunk-MWXZHQN3.js";
6
- import "../../../chunk-LOPKRCGI.js";
6
+ import "../../../chunk-CWMXXUWU.js";
7
7
  export {
8
8
  Ios_MSALWebviewType,
9
9
  Ios_ModalPresentationStyle,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  LoginButton
3
- } from "../../chunk-A2ITULLZ.js";
4
- import "../../chunk-DWZTCBMU.js";
5
- import "../../chunk-U24WP5A2.js";
6
- import "../../chunk-YFB5MH7A.js";
7
- import "../../chunk-6KLEJ4JP.js";
8
- import "../../chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
11
- import "../../chunk-J3NCIUSC.js";
12
- import "../../chunk-RDZCTFA2.js";
13
- import "../../chunk-QCFF5SRY.js";
14
- import "../../chunk-D2PYTQ7Y.js";
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-LOPKRCGI.js";
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-XOV5UQCQ.js";
4
- import "../../chunk-U24WP5A2.js";
5
- import "../../chunk-YFB5MH7A.js";
6
- import "../../chunk-6KLEJ4JP.js";
7
- import "../../chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
10
- import "../../chunk-J3NCIUSC.js";
11
- import "../../chunk-RDZCTFA2.js";
12
- import "../../chunk-QCFF5SRY.js";
13
- import "../../chunk-D2PYTQ7Y.js";
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-LOPKRCGI.js";
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-DWZTCBMU.js";
4
- import "../../chunk-U24WP5A2.js";
5
- import "../../chunk-YFB5MH7A.js";
6
- import "../../chunk-6KLEJ4JP.js";
7
- import "../../chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
10
- import "../../chunk-J3NCIUSC.js";
11
- import "../../chunk-RDZCTFA2.js";
12
- import "../../chunk-QCFF5SRY.js";
13
- import "../../chunk-D2PYTQ7Y.js";
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-LOPKRCGI.js";
15
+ import "../../chunk-CWMXXUWU.js";
16
16
  export {
17
17
  useAuthenticate
18
18
  };
@@ -1,31 +1,31 @@
1
- import "../chunk-KPETJAHS.js";
1
+ import "../chunk-YGHNEFH2.js";
2
2
  import {
3
3
  LoginButton
4
- } from "../chunk-A2ITULLZ.js";
4
+ } from "../chunk-UYO5Y6CJ.js";
5
5
  import {
6
6
  useAccount
7
- } from "../chunk-XOV5UQCQ.js";
7
+ } from "../chunk-IU75T6GM.js";
8
8
  import {
9
9
  useAuthenticate
10
- } from "../chunk-DWZTCBMU.js";
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-U24WP5A2.js";
18
- import "../chunk-YFB5MH7A.js";
17
+ } from "../chunk-7KZL6S5R.js";
18
+ import "../chunk-PETOX4KF.js";
19
19
  import {
20
20
  getAccountWeb
21
- } from "../chunk-6KLEJ4JP.js";
22
- import "../chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
27
- import "../chunk-J3NCIUSC.js";
28
- import "../chunk-RDZCTFA2.js";
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-QCFF5SRY.js";
44
- import "../chunk-D2PYTQ7Y.js";
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-LOPKRCGI.js";
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-QCFF5SRY.js";
16
- import "../../chunk-D2PYTQ7Y.js";
17
- import "../../chunk-LOPKRCGI.js";
15
+ } from "../../chunk-IEVUSC3Q.js";
16
+ import "../../chunk-WKE5IW37.js";
17
+ import "../../chunk-CWMXXUWU.js";
18
18
  export {
19
19
  getConfig,
20
20
  getDiscovery,
@@ -2,8 +2,8 @@ import {
2
2
  getItem,
3
3
  removeItem,
4
4
  setItem
5
- } from "../../chunk-D2PYTQ7Y.js";
6
- import "../../chunk-LOPKRCGI.js";
5
+ } from "../../chunk-WKE5IW37.js";
6
+ import "../../chunk-CWMXXUWU.js";
7
7
  export {
8
8
  getItem,
9
9
  removeItem,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  decodeToken
3
- } from "../../chunk-J3NCIUSC.js";
4
- import "../../chunk-LOPKRCGI.js";
3
+ } from "../../chunk-7NSJ6UAV.js";
4
+ import "../../chunk-CWMXXUWU.js";
5
5
  export {
6
6
  decodeToken
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tokenRefresh
3
- } from "../../chunk-RDZCTFA2.js";
4
- import "../../chunk-QCFF5SRY.js";
5
- import "../../chunk-D2PYTQ7Y.js";
6
- import "../../chunk-LOPKRCGI.js";
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
  };
@@ -2,7 +2,7 @@ import {
2
2
  getMadAccount,
3
3
  getMadAuthenticationResult
4
4
  } from "../chunk-7SOSXNKP.js";
5
- import "../chunk-LOPKRCGI.js";
5
+ import "../chunk-CWMXXUWU.js";
6
6
  export {
7
7
  getMadAccount,
8
8
  getMadAuthenticationResult
package/dist/auth.js CHANGED
@@ -6,9 +6,9 @@ import {
6
6
  getAccount,
7
7
  initiateAuthenticationClient,
8
8
  signOut
9
- } from "./chunk-VQO2TBXX.js";
9
+ } from "./chunk-DNMYY37N.js";
10
10
  import "./chunk-7SOSXNKP.js";
11
- import "./chunk-LOPKRCGI.js";
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-YKVRYDSR.js";
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-LOPKRCGI.js";
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-UYPL3SZW.js";
3
+ } from "./chunk-XENWB4ZX.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadValues
7
- } from "./chunk-LOPKRCGI.js";
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-6KLEJ4JP.js";
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-JGEEAHZG.js";
14
+ } from "./chunk-K34WGG6L.js";
15
15
 
16
16
  // src/Expo-AuthSession/authenticationHandler/index.ts
17
17
  import { Platform } from "react-native";
@@ -2,8 +2,7 @@
2
2
  import { jwtDecode } from "jwt-decode";
3
3
  var decodeToken = (token) => {
4
4
  var _a, _b, _c;
5
- if (!token)
6
- return void 0;
5
+ if (!token) return void 0;
7
6
  const decoded = jwtDecode(token);
8
7
  const account = {
9
8
  name: decoded.name,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7SOSXNKP.js";
5
5
  import {
6
6
  __async
7
- } from "./chunk-LOPKRCGI.js";
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-U24WP5A2.js";
6
+ } from "./chunk-7KZL6S5R.js";
7
7
  import {
8
8
  __async
9
- } from "./chunk-LOPKRCGI.js";
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-QCFF5SRY.js";
4
+ } from "./chunk-IEVUSC3Q.js";
5
5
  import {
6
6
  __async
7
- } from "./chunk-LOPKRCGI.js";
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* () {
@@ -2,7 +2,7 @@ import {
2
2
  getItem,
3
3
  removeItem,
4
4
  setItem
5
- } from "./chunk-D2PYTQ7Y.js";
5
+ } from "./chunk-WKE5IW37.js";
6
6
 
7
7
  // src/Expo-AuthSession/store/authStore.ts
8
8
  import { TokenResponse } from "expo-auth-session";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getAccountWeb
3
- } from "./chunk-6KLEJ4JP.js";
3
+ } from "./chunk-52LAPG3S.js";
4
4
  import {
5
5
  useAuth
6
- } from "./chunk-QCFF5SRY.js";
6
+ } from "./chunk-IEVUSC3Q.js";
7
7
  import {
8
8
  __async
9
- } from "./chunk-LOPKRCGI.js";
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-J3NCIUSC.js";
3
+ } from "./chunk-7NSJ6UAV.js";
4
4
  import {
5
5
  tokenRefresh
6
- } from "./chunk-RDZCTFA2.js";
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-QCFF5SRY.js";
20
+ } from "./chunk-IEVUSC3Q.js";
21
21
  import {
22
22
  __async
23
- } from "./chunk-LOPKRCGI.js";
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,6 +1,6 @@
1
1
  import {
2
2
  PublicClientApplication
3
- } from "./chunk-YKVRYDSR.js";
3
+ } from "./chunk-W4CNNXDN.js";
4
4
 
5
5
  // src/Expo-AuthSession/authenticationHandler/web/index.ts
6
6
  var web_default = PublicClientApplication;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getAccount
3
- } from "./chunk-VQO2TBXX.js";
3
+ } from "./chunk-DNMYY37N.js";
4
4
  import {
5
5
  __async
6
- } from "./chunk-LOPKRCGI.js";
6
+ } from "./chunk-CWMXXUWU.js";
7
7
 
8
8
  // src/hooks/useAccount.ts
9
9
  import { useEffect, useState } from "react";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  useAuthenticate
3
- } from "./chunk-DWZTCBMU.js";
3
+ } from "./chunk-ELBTMDOI.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadValues
7
- } from "./chunk-LOPKRCGI.js";
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-LOPKRCGI.js";
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";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __async
3
- } from "./chunk-LOPKRCGI.js";
3
+ } from "./chunk-CWMXXUWU.js";
4
4
 
5
5
  // src/Expo-AuthSession/store/encryption.ts
6
6
  import AsyncStorage from "@react-native-async-storage/async-storage";
@@ -3,10 +3,10 @@ import {
3
3
  authenticateSilently,
4
4
  authenticationClientExists,
5
5
  initiateAuthenticationClient
6
- } from "./chunk-VQO2TBXX.js";
6
+ } from "./chunk-DNMYY37N.js";
7
7
  import {
8
8
  __async
9
- } from "./chunk-LOPKRCGI.js";
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-A2ITULLZ.js";
3
+ } from "./chunk-UYO5Y6CJ.js";
4
4
  import {
5
5
  useAccount
6
- } from "./chunk-XOV5UQCQ.js";
6
+ } from "./chunk-IU75T6GM.js";
7
7
  import {
8
8
  useAuthenticate
9
- } from "./chunk-DWZTCBMU.js";
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-U24WP5A2.js";
16
+ } from "./chunk-7KZL6S5R.js";
17
17
  import {
18
18
  getAccountWeb
19
- } from "./chunk-6KLEJ4JP.js";
19
+ } from "./chunk-52LAPG3S.js";
20
20
  import {
21
21
  getAccount
22
- } from "./chunk-JGEEAHZG.js";
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-QCFF5SRY.js";
37
+ } from "./chunk-IEVUSC3Q.js";
38
38
  import {
39
39
  __export
40
- } from "./chunk-LOPKRCGI.js";
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-EIEVZYBO.js";
4
- import "../chunk-UYPL3SZW.js";
5
- import "../chunk-VQO2TBXX.js";
3
+ } from "../chunk-7A7RZF24.js";
4
+ import "../chunk-XENWB4ZX.js";
5
+ import "../chunk-DNMYY37N.js";
6
6
  import "../chunk-7SOSXNKP.js";
7
- import "../chunk-LOPKRCGI.js";
7
+ import "../chunk-CWMXXUWU.js";
8
8
  export {
9
9
  LoginButton
10
10
  };
@@ -1,11 +1,11 @@
1
1
  import "../chunk-HAB34YS7.js";
2
2
  import {
3
3
  LoginButton
4
- } from "../chunk-EIEVZYBO.js";
5
- import "../chunk-UYPL3SZW.js";
6
- import "../chunk-VQO2TBXX.js";
4
+ } from "../chunk-7A7RZF24.js";
5
+ import "../chunk-XENWB4ZX.js";
6
+ import "../chunk-DNMYY37N.js";
7
7
  import "../chunk-7SOSXNKP.js";
8
- import "../chunk-LOPKRCGI.js";
8
+ import "../chunk-CWMXXUWU.js";
9
9
  export {
10
10
  LoginButton
11
11
  };
@@ -1,13 +1,13 @@
1
1
  import "../chunk-GUKC6UGZ.js";
2
2
  import {
3
3
  useAccount
4
- } from "../chunk-43BBXE6P.js";
4
+ } from "../chunk-RBOUHIMW.js";
5
5
  import {
6
6
  useAuthenticate
7
- } from "../chunk-UYPL3SZW.js";
8
- import "../chunk-VQO2TBXX.js";
7
+ } from "../chunk-XENWB4ZX.js";
8
+ import "../chunk-DNMYY37N.js";
9
9
  import "../chunk-7SOSXNKP.js";
10
- import "../chunk-LOPKRCGI.js";
10
+ import "../chunk-CWMXXUWU.js";
11
11
  export {
12
12
  useAccount,
13
13
  useAuthenticate
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useAccount
3
- } from "../chunk-43BBXE6P.js";
4
- import "../chunk-VQO2TBXX.js";
3
+ } from "../chunk-RBOUHIMW.js";
4
+ import "../chunk-DNMYY37N.js";
5
5
  import "../chunk-7SOSXNKP.js";
6
- import "../chunk-LOPKRCGI.js";
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-UYPL3SZW.js";
4
- import "../chunk-VQO2TBXX.js";
3
+ } from "../chunk-XENWB4ZX.js";
4
+ import "../chunk-DNMYY37N.js";
5
5
  import "../chunk-7SOSXNKP.js";
6
- import "../chunk-LOPKRCGI.js";
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-43BBXE6P.js";
4
+ } from "./chunk-RBOUHIMW.js";
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  import {
7
7
  Expo_AuthSession_exports
8
- } from "./chunk-KPETJAHS.js";
9
- import "./chunk-A2ITULLZ.js";
10
- import "./chunk-XOV5UQCQ.js";
11
- import "./chunk-DWZTCBMU.js";
12
- import "./chunk-U24WP5A2.js";
13
- import "./chunk-YFB5MH7A.js";
14
- import "./chunk-6KLEJ4JP.js";
15
- import "./chunk-YKVRYDSR.js";
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-JGEEAHZG.js";
18
- import "./chunk-J3NCIUSC.js";
19
- import "./chunk-RDZCTFA2.js";
20
- import "./chunk-QCFF5SRY.js";
21
- import "./chunk-D2PYTQ7Y.js";
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-EIEVZYBO.js";
26
+ } from "./chunk-7A7RZF24.js";
27
27
  import {
28
28
  useAuthenticate
29
- } from "./chunk-UYPL3SZW.js";
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-VQO2TBXX.js";
37
+ } from "./chunk-DNMYY37N.js";
38
38
  import "./chunk-7SOSXNKP.js";
39
- import "./chunk-LOPKRCGI.js";
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
- "type": "module",
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.9",
19
5
  "author": {
20
6
  "name": "Equinor Mobile App Delivery team (MAD)"
21
7
  },
22
- "license": "MIT",
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": "^1.23.1",
11
+ "@react-native-async-storage/async-storage": "^2.1.0",
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.20.0",
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
- "jest": "^29.2.1",
56
- "jest-expo": "~51.0.3",
57
- "react-test-renderer": "18.2.0"
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.2",
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