@equinor/mad-auth 0.1.24 → 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.
- package/CHANGELOG.md +10 -0
- package/dist/Expo-AuthSession/authenticationHandler/auth.d.ts +32 -0
- package/dist/Expo-AuthSession/authenticationHandler/auth.js +23 -0
- package/dist/Expo-AuthSession/authenticationHandler/index.d.ts +8 -0
- package/dist/Expo-AuthSession/authenticationHandler/index.js +31 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.d.ts +39 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/authWeb.js +22 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/index.d.ts +4 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/index.js +33 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.d.ts +13 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/publicClientApplication.js +8 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/types.d.ts +304 -0
- package/dist/Expo-AuthSession/authenticationHandler/web/types.js +11 -0
- package/dist/Expo-AuthSession/components/LoginButton.d.ts +4 -0
- package/dist/Expo-AuthSession/components/LoginButton.js +19 -0
- package/dist/Expo-AuthSession/hooks/useAccount.d.ts +4 -0
- package/dist/Expo-AuthSession/hooks/useAccount.js +22 -0
- package/dist/Expo-AuthSession/hooks/useAuthenticate.d.ts +20 -0
- package/dist/Expo-AuthSession/hooks/useAuthenticate.js +18 -0
- package/dist/Expo-AuthSession/index.d.ts +6 -0
- package/dist/Expo-AuthSession/index.js +76 -0
- package/dist/Expo-AuthSession/store/authStore.d.ts +36 -0
- package/dist/Expo-AuthSession/store/authStore.js +32 -0
- package/dist/Expo-AuthSession/store/encryption.d.ts +4 -0
- package/dist/Expo-AuthSession/store/encryption.js +11 -0
- package/dist/Expo-AuthSession/types.d.ts +16 -0
- package/dist/Expo-AuthSession/types.js +1 -0
- package/dist/Expo-AuthSession/utils/decodeToken.d.ts +8 -0
- package/dist/Expo-AuthSession/utils/decodeToken.js +7 -0
- package/dist/Expo-AuthSession/utils/tokenRefresh.d.ts +2 -0
- package/dist/Expo-AuthSession/utils/tokenRefresh.js +9 -0
- package/dist/_internal/translationLayer.d.ts +1 -1
- package/dist/_internal/translationLayer.js +2 -1
- package/dist/auth.d.ts +4 -0
- package/dist/auth.js +5 -2
- package/dist/chunk-2APLN7PB.js +63 -0
- package/dist/chunk-5WASXW2G.js +49 -0
- package/dist/chunk-6Q5OCWP7.js +21 -0
- package/dist/chunk-6UTWP7VI.js +123 -0
- package/dist/{chunk-ZTEWSERJ.js → chunk-7FYKB6SB.js} +2 -2
- package/dist/chunk-7SOSXNKP.js +17 -0
- package/dist/{chunk-HIGCNJNC.js → chunk-AD532AOW.js} +2 -2
- package/dist/chunk-CFM3MLGB.js +39 -0
- package/dist/chunk-D7L44FRV.js +17 -0
- package/dist/chunk-DXZ4T5LX.js +87 -0
- package/dist/chunk-FF7UDUOZ.js +33 -0
- package/dist/chunk-GCVP36UH.js +10 -0
- package/dist/chunk-JVCNKTCD.js +76 -0
- package/dist/chunk-MWXZHQN3.js +36 -0
- package/dist/chunk-NP4GJ5X5.js +0 -0
- package/dist/chunk-OFQ6U2BU.js +103 -0
- package/dist/{chunk-UT6IGOV7.js → chunk-TTVDYDVO.js} +9 -3
- package/dist/{chunk-763B4HQC.js → chunk-WEAGW6MQ.js} +10 -16
- package/dist/chunk-WQQ3TZZU.js +127 -0
- package/dist/{chunk-GCZJ767T.js → chunk-XAS776NQ.js} +2 -2
- package/dist/chunk-XHVESUQ2.js +60 -0
- package/dist/components/LoginButton.js +5 -4
- package/dist/components/index.js +5 -4
- package/dist/hooks/index.js +7 -6
- package/dist/hooks/useAccount.js +4 -3
- package/dist/hooks/useAuthenticate.js +4 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -8
- package/package.json +65 -46
package/dist/hooks/useAccount.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAccount
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
|
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-
|
|
6
|
-
import "./chunk-GUKC6UGZ.js";
|
|
26
|
+
} from "./chunk-XAS776NQ.js";
|
|
7
27
|
import {
|
|
8
28
|
useAuthenticate
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
21
|
-
import "./chunk-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
+
}
|