@equinor/mad-auth 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @equinor/mad-auth
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 09870d8: Several fixes for expo-auth-session implementation
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
@@ -1,4 +1,2 @@
1
1
  import { MadAccount } from "../../types";
2
- export declare const useAccountNative: () => MadAccount | undefined;
3
- export declare const useAccountWeb: () => MadAccount | null | undefined;
4
2
  export declare const useAccount: () => MadAccount | null | undefined;
@@ -1,8 +1,6 @@
1
1
  import {
2
- useAccount,
3
- useAccountNative,
4
- useAccountWeb
5
- } from "../../chunk-CFM3MLGB.js";
2
+ useAccount
3
+ } from "../../chunk-RJMLROQP.js";
6
4
  import "../../chunk-FF7UDUOZ.js";
7
5
  import "../../chunk-GCVP36UH.js";
8
6
  import "../../chunk-6UTWP7VI.js";
@@ -16,7 +14,5 @@ import "../../chunk-5WASXW2G.js";
16
14
  import "../../chunk-7SOSXNKP.js";
17
15
  import "../../chunk-WEAGW6MQ.js";
18
16
  export {
19
- useAccount,
20
- useAccountNative,
21
- useAccountWeb
17
+ useAccount
22
18
  };
@@ -1,12 +1,10 @@
1
- import "../chunk-JVCNKTCD.js";
1
+ import "../chunk-YFQJZFRR.js";
2
2
  import {
3
3
  LoginButton
4
4
  } from "../chunk-XHVESUQ2.js";
5
5
  import {
6
- useAccount,
7
- useAccountNative,
8
- useAccountWeb
9
- } from "../chunk-CFM3MLGB.js";
6
+ useAccount
7
+ } from "../chunk-RJMLROQP.js";
10
8
  import {
11
9
  useAuthenticate
12
10
  } from "../chunk-2APLN7PB.js";
@@ -69,8 +67,6 @@ export {
69
67
  setUserData,
70
68
  signOut,
71
69
  useAccount,
72
- useAccountNative,
73
- useAccountWeb,
74
70
  useAuth,
75
71
  useAuthenticate
76
72
  };
@@ -33,7 +33,5 @@ var useAccountWeb = () => {
33
33
  var useAccount = Platform.OS === "web" ? useAccountWeb : useAccountNative;
34
34
 
35
35
  export {
36
- useAccountNative,
37
- useAccountWeb,
38
36
  useAccount
39
37
  };
@@ -2,10 +2,8 @@ import {
2
2
  LoginButton
3
3
  } from "./chunk-XHVESUQ2.js";
4
4
  import {
5
- useAccount,
6
- useAccountNative,
7
- useAccountWeb
8
- } from "./chunk-CFM3MLGB.js";
5
+ useAccount
6
+ } from "./chunk-RJMLROQP.js";
9
7
  import {
10
8
  useAuthenticate
11
9
  } from "./chunk-2APLN7PB.js";
@@ -65,8 +63,6 @@ __export(Expo_AuthSession_exports, {
65
63
  setUserData: () => setUserData,
66
64
  signOut: () => signOut,
67
65
  useAccount: () => useAccount,
68
- useAccountNative: () => useAccountNative,
69
- useAccountWeb: () => useAccountWeb,
70
66
  useAuth: () => useAuth,
71
67
  useAuthenticate: () => useAuthenticate
72
68
  });
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ import {
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  import {
7
7
  Expo_AuthSession_exports
8
- } from "./chunk-JVCNKTCD.js";
8
+ } from "./chunk-YFQJZFRR.js";
9
9
  import "./chunk-XHVESUQ2.js";
10
- import "./chunk-CFM3MLGB.js";
10
+ import "./chunk-RJMLROQP.js";
11
11
  import "./chunk-2APLN7PB.js";
12
12
  import "./chunk-FF7UDUOZ.js";
13
13
  import "./chunk-GCVP36UH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-auth",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A simple wrapper library for react-native-msal",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -32,13 +32,14 @@
32
32
  "react": ">=18.0",
33
33
  "react-dom": ">=18.0",
34
34
  "react-native": ">=0.70",
35
- "react-native-msal": "git+https://github.com/equinor/react-native-msal.git#52c62cc2f59cd8e6eaa3df5d345296a48283a18b"
35
+ "react-native-msal": "*"
36
36
  },
37
37
  "dependencies": {
38
38
  "@equinor/mad-components": "*",
39
39
  "@react-native-async-storage/async-storage": "^1.23.1",
40
40
  "@types/aes-js": "^3.1.4",
41
41
  "aes-js": "^3.1.2",
42
+ "core-js": "^3.37.0",
42
43
  "expo-auth-session": "~5.0.2",
43
44
  "expo-crypto": "~12.4.1",
44
45
  "expo-secure-store": "~12.3.1",