@multiplatform.one/keycloak 0.0.9 → 0.1.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.
Files changed (39) hide show
  1. package/esm/hooks/useLogin.js +2 -2
  2. package/esm/hooks/useLogin.js.map +1 -1
  3. package/esm/persist/index.js +28 -0
  4. package/esm/persist/index.js.map +1 -0
  5. package/esm/persist/index.web.js +28 -0
  6. package/esm/persist/index.web.js.map +1 -0
  7. package/esm/persistAtom/index.js +27 -0
  8. package/esm/persistAtom/index.js.map +1 -0
  9. package/esm/persistAtom/index.web.js +30 -0
  10. package/esm/persistAtom/index.web.js.map +1 -0
  11. package/esm/provider/keycloakProvider.native.js.map +1 -1
  12. package/esm/state/index.js +3 -3
  13. package/esm/state/index.js.map +1 -1
  14. package/lib/hooks/useLogin.d.ts +1 -1
  15. package/lib/hooks/useLogin.js +3 -3
  16. package/lib/hooks/useLogin.js.map +1 -1
  17. package/lib/persist/index.d.ts +26 -0
  18. package/lib/persist/index.js +61 -0
  19. package/lib/persist/index.js.map +1 -0
  20. package/lib/persist/index.web.d.ts +26 -0
  21. package/lib/persist/index.web.js +61 -0
  22. package/lib/persist/index.web.js.map +1 -0
  23. package/lib/persistAtom/index.d.ts +24 -0
  24. package/lib/persistAtom/index.js +49 -0
  25. package/lib/persistAtom/index.js.map +1 -0
  26. package/lib/persistAtom/index.web.d.ts +25 -0
  27. package/lib/persistAtom/index.web.js +49 -0
  28. package/lib/persistAtom/index.web.js.map +1 -0
  29. package/lib/provider/keycloakProvider.native.js.map +1 -1
  30. package/lib/state/index.d.ts +1 -1
  31. package/lib/state/index.js +6 -8
  32. package/lib/state/index.js.map +1 -1
  33. package/lib/tsconfig.build.tsbuildinfo +1 -1
  34. package/package.json +4 -4
  35. package/src/hooks/useLogin.ts +2 -2
  36. package/src/persistAtom/index.ts +27 -0
  37. package/src/persistAtom/index.web.ts +29 -0
  38. package/src/provider/keycloakProvider.native.tsx +1 -1
  39. package/src/state/index.ts +3 -3
@@ -4,7 +4,7 @@
4
4
  * File Created: 22-11-2022 17:40:53
5
5
  * Author: Clay Risser
6
6
  * -----
7
- * Last Modified: 25-11-2022 09:52:31
7
+ * Last Modified: 22-01-2023 08:28:11
8
8
  * Modified By: Clay Risser
9
9
  * -----
10
10
  * Risser Labs LLC (c) Copyright 2021 - 2022
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import { atom, useRecoilState } from "recoil";
26
- import persist from "react-native-recoil-persist";
26
+ import { persistAtom } from "../persistAtom";
27
27
 
28
28
  export function useAuthState() {
29
29
  return useRecoilState(authState);
@@ -32,5 +32,5 @@ export function useAuthState() {
32
32
  export const authState = atom<{ token?: string; refreshToken?: string }>({
33
33
  key: "auth",
34
34
  default: {},
35
- effects: [persist.persistAtom],
35
+ effects: [persistAtom],
36
36
  });