@equinor/mad-auth 0.1.23 → 0.2.0

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 (64) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/Expo-AuthSession/authenticationHandler/auth.d.ts +32 -0
  3. package/dist/Expo-AuthSession/authenticationHandler/auth.js +23 -0
  4. package/dist/Expo-AuthSession/authenticationHandler/index.d.ts +8 -0
  5. package/dist/Expo-AuthSession/authenticationHandler/index.js +31 -0
  6. package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.d.ts +39 -0
  7. package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.js +22 -0
  8. package/dist/Expo-AuthSession/authenticationHandler/web/index.d.ts +4 -0
  9. package/dist/Expo-AuthSession/authenticationHandler/web/index.js +33 -0
  10. package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.d.ts +13 -0
  11. package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.js +8 -0
  12. package/dist/Expo-AuthSession/authenticationHandler/web/types.d.ts +304 -0
  13. package/dist/Expo-AuthSession/authenticationHandler/web/types.js +11 -0
  14. package/dist/Expo-AuthSession/components/LoginButton.d.ts +4 -0
  15. package/dist/Expo-AuthSession/components/LoginButton.js +19 -0
  16. package/dist/Expo-AuthSession/hooks/useAccount.d.ts +4 -0
  17. package/dist/Expo-AuthSession/hooks/useAccount.js +22 -0
  18. package/dist/Expo-AuthSession/hooks/useAuthenticate.d.ts +20 -0
  19. package/dist/Expo-AuthSession/hooks/useAuthenticate.js +18 -0
  20. package/dist/Expo-AuthSession/index.d.ts +6 -0
  21. package/dist/Expo-AuthSession/index.js +76 -0
  22. package/dist/Expo-AuthSession/store/authStore.d.ts +36 -0
  23. package/dist/Expo-AuthSession/store/authStore.js +32 -0
  24. package/dist/Expo-AuthSession/store/encryption.d.ts +4 -0
  25. package/dist/Expo-AuthSession/store/encryption.js +11 -0
  26. package/dist/Expo-AuthSession/types.d.ts +16 -0
  27. package/dist/Expo-AuthSession/types.js +1 -0
  28. package/dist/Expo-AuthSession/utils/decodeToken.d.ts +8 -0
  29. package/dist/Expo-AuthSession/utils/decodeToken.js +7 -0
  30. package/dist/Expo-AuthSession/utils/tokenRefresh.d.ts +2 -0
  31. package/dist/Expo-AuthSession/utils/tokenRefresh.js +9 -0
  32. package/dist/_internal/translationLayer.d.ts +1 -1
  33. package/dist/_internal/translationLayer.js +2 -1
  34. package/dist/auth.d.ts +4 -0
  35. package/dist/auth.js +5 -2
  36. package/dist/chunk-2APLN7PB.js +63 -0
  37. package/dist/chunk-5WASXW2G.js +49 -0
  38. package/dist/chunk-6Q5OCWP7.js +21 -0
  39. package/dist/chunk-6UTWP7VI.js +123 -0
  40. package/dist/{chunk-ZTEWSERJ.js → chunk-7FYKB6SB.js} +2 -2
  41. package/dist/chunk-7SOSXNKP.js +17 -0
  42. package/dist/{chunk-HIGCNJNC.js → chunk-AD532AOW.js} +2 -2
  43. package/dist/chunk-CFM3MLGB.js +39 -0
  44. package/dist/chunk-D7L44FRV.js +17 -0
  45. package/dist/chunk-DXZ4T5LX.js +87 -0
  46. package/dist/chunk-FF7UDUOZ.js +33 -0
  47. package/dist/chunk-GCVP36UH.js +10 -0
  48. package/dist/chunk-JVCNKTCD.js +76 -0
  49. package/dist/chunk-MWXZHQN3.js +36 -0
  50. package/dist/chunk-NP4GJ5X5.js +0 -0
  51. package/dist/chunk-OFQ6U2BU.js +103 -0
  52. package/dist/{chunk-UT6IGOV7.js → chunk-TTVDYDVO.js} +9 -3
  53. package/dist/{chunk-763B4HQC.js → chunk-WEAGW6MQ.js} +10 -16
  54. package/dist/chunk-WQQ3TZZU.js +127 -0
  55. package/dist/{chunk-GCZJ767T.js → chunk-XAS776NQ.js} +2 -2
  56. package/dist/chunk-XHVESUQ2.js +60 -0
  57. package/dist/components/LoginButton.js +5 -4
  58. package/dist/components/index.js +5 -4
  59. package/dist/hooks/index.js +7 -6
  60. package/dist/hooks/useAccount.js +4 -3
  61. package/dist/hooks/useAuthenticate.js +4 -3
  62. package/dist/index.d.ts +2 -1
  63. package/dist/index.js +27 -8
  64. package/package.json +65 -46
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  useAccount
3
- } from "../chunk-ZTEWSERJ.js";
4
- import "../chunk-UT6IGOV7.js";
5
- import "../chunk-763B4HQC.js";
3
+ } from "../chunk-7FYKB6SB.js";
4
+ import "../chunk-TTVDYDVO.js";
5
+ import "../chunk-7SOSXNKP.js";
6
+ import "../chunk-WEAGW6MQ.js";
6
7
  export {
7
8
  useAccount
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  useAuthenticate
3
- } from "../chunk-HIGCNJNC.js";
4
- import "../chunk-UT6IGOV7.js";
5
- import "../chunk-763B4HQC.js";
3
+ } from "../chunk-AD532AOW.js";
4
+ import "../chunk-TTVDYDVO.js";
5
+ import "../chunk-7SOSXNKP.js";
6
+ import "../chunk-WEAGW6MQ.js";
6
7
  export {
7
8
  useAuthenticate
8
9
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from "./auth";
1
+ export { authenticateInteractively, authenticateSilently, authenticationClientExists, initiateAuthenticationClient, getAccount, signOut, } from "./auth";
2
2
  export * from "./types";
3
3
  export * from "./components";
4
4
  export * from "./hooks";
5
+ export * as ExpoAuthSession from "./Expo-AuthSession";
package/dist/index.js CHANGED
@@ -1,15 +1,32 @@
1
+ import "./chunk-GUKC6UGZ.js";
2
+ import {
3
+ useAccount
4
+ } from "./chunk-7FYKB6SB.js";
1
5
  import "./chunk-6F4PWJZI.js";
6
+ import {
7
+ Expo_AuthSession_exports
8
+ } from "./chunk-JVCNKTCD.js";
9
+ import "./chunk-XHVESUQ2.js";
10
+ import "./chunk-CFM3MLGB.js";
11
+ import "./chunk-2APLN7PB.js";
12
+ import "./chunk-FF7UDUOZ.js";
13
+ import "./chunk-GCVP36UH.js";
14
+ import "./chunk-6UTWP7VI.js";
15
+ import "./chunk-WQQ3TZZU.js";
16
+ import "./chunk-MWXZHQN3.js";
17
+ import "./chunk-OFQ6U2BU.js";
18
+ import "./chunk-D7L44FRV.js";
19
+ import "./chunk-6Q5OCWP7.js";
20
+ import "./chunk-DXZ4T5LX.js";
21
+ import "./chunk-5WASXW2G.js";
22
+ import "./chunk-NP4GJ5X5.js";
2
23
  import "./chunk-HAB34YS7.js";
3
24
  import {
4
25
  LoginButton
5
- } from "./chunk-GCZJ767T.js";
6
- import "./chunk-GUKC6UGZ.js";
26
+ } from "./chunk-XAS776NQ.js";
7
27
  import {
8
28
  useAuthenticate
9
- } from "./chunk-HIGCNJNC.js";
10
- import {
11
- useAccount
12
- } from "./chunk-ZTEWSERJ.js";
29
+ } from "./chunk-AD532AOW.js";
13
30
  import {
14
31
  authenticateInteractively,
15
32
  authenticateSilently,
@@ -17,9 +34,11 @@ import {
17
34
  getAccount,
18
35
  initiateAuthenticationClient,
19
36
  signOut
20
- } from "./chunk-UT6IGOV7.js";
21
- import "./chunk-763B4HQC.js";
37
+ } from "./chunk-TTVDYDVO.js";
38
+ import "./chunk-7SOSXNKP.js";
39
+ import "./chunk-WEAGW6MQ.js";
22
40
  export {
41
+ Expo_AuthSession_exports as ExpoAuthSession,
23
42
  LoginButton,
24
43
  authenticateInteractively,
25
44
  authenticateSilently,
package/package.json CHANGED
@@ -1,47 +1,66 @@
1
1
  {
2
- "name": "@equinor/mad-auth",
3
- "version": "0.1.23",
4
- "description": "A simple wrapper library for react-native-msal",
5
- "type": "module",
6
- "keywords": [
7
- "react native",
8
- "authentication",
9
- "typescript",
10
- "msal"
11
- ],
12
- "author": {
13
- "name": "Equinor Mobile App Delivery team (MAD)"
14
- },
15
- "license": "MIT",
16
- "bugs": {
17
- "url": "https://github.com/equinor/mad/issues"
18
- },
19
- "homepage": "https://github.com/equinor/mad/",
20
- "main": "./dist/index.js",
21
- "types": "./dist/index.d.ts",
22
- "peerDependencies": {
23
- "react": ">=18.0",
24
- "react-dom": ">=18.0",
25
- "react-native": ">=0.70",
26
- "react-native-msal": "*"
27
- },
28
- "dependencies": {
29
- "@equinor/mad-components": "0.12.10"
30
- },
31
- "devDependencies": {
32
- "@equinor/eslint-config-mad": "0.3.1"
33
- },
34
- "files": [
35
- "CODE_OF_CONDUCT.md",
36
- "LICENSE",
37
- "CHANGELOG.md",
38
- "dist"
39
- ],
40
- "scripts": {
41
- "build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
42
- "test": "jest",
43
- "dev": "tsup-node --watch --clean=false",
44
- "lint": "eslint src/",
45
- "clean": "rm -rf node_modules/ && rm -rf dist/"
46
- }
47
- }
2
+ "name": "@equinor/mad-auth",
3
+ "version": "0.2.0",
4
+ "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/ && rm -rf dist/"
12
+ },
13
+ "keywords": [
14
+ "react native",
15
+ "authentication",
16
+ "typescript",
17
+ "msal"
18
+ ],
19
+ "author": {
20
+ "name": "Equinor Mobile App Delivery team (MAD)"
21
+ },
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": "git+https://github.com/equinor/react-native-msal.git#52c62cc2f59cd8e6eaa3df5d345296a48283a18b"
36
+ },
37
+ "dependencies": {
38
+ "@equinor/mad-components": "*",
39
+ "@react-native-async-storage/async-storage": "^1.23.1",
40
+ "@types/aes-js": "^3.1.4",
41
+ "aes-js": "^3.1.2",
42
+ "expo-auth-session": "~5.0.2",
43
+ "expo-crypto": "~12.4.1",
44
+ "expo-secure-store": "~12.3.1",
45
+ "jest": "^29.2.1",
46
+ "jest-expo": "~49.0.0",
47
+ "jwt-decode": "^4.0.0",
48
+ "react-native-get-random-values": "^1.11.0",
49
+ "zustand": "^4.5.2"
50
+ },
51
+ "devDependencies": {
52
+ "@babel/core": "^7.21.4",
53
+ "@equinor/eslint-config-mad": "*",
54
+ "@testing-library/jest-native": "^5.4.3",
55
+ "@testing-library/react": "^14.0.0",
56
+ "@testing-library/react-native": "^12.3.0",
57
+ "@types/showdown": "^2.0.0",
58
+ "react-test-renderer": "18.2.0"
59
+ },
60
+ "files": [
61
+ "CODE_OF_CONDUCT.md",
62
+ "LICENSE",
63
+ "CHANGELOG.md",
64
+ "dist"
65
+ ]
66
+ }