jazz-react-native 0.9.3 → 0.9.5

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > jazz-react-native@0.9.3 build /home/runner/work/jazz/jazz/packages/jazz-react-native
2
+ > jazz-react-native@0.9.5 build /home/runner/work/jazz/jazz/packages/jazz-react-native
3
3
  > rm -rf ./dist && tsc --sourceMap --outDir dist
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # jazz-browser
2
2
 
3
+ ## 0.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - c871912: Add clearUserCredentials API to programmatically delete the current user stored credentials
8
+
9
+ ## 0.9.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0f57687]
14
+ - jazz-react-core@0.8.48
15
+
3
16
  ## 0.9.3
4
17
 
5
18
  ### Patch Changes
@@ -1 +1,2 @@
1
1
  export * from "./DemoAuthUI.js";
2
+ export declare function clearUserCredentials(): Promise<[void, void]>;
package/dist/auth/auth.js CHANGED
@@ -1,2 +1,11 @@
1
+ import KvStoreContext from "../storage/kv-store-context.js";
1
2
  export * from "./DemoAuthUI.js";
3
+ export function clearUserCredentials() {
4
+ const kvStore = KvStoreContext.getInstance().getStorage();
5
+ // TODO: Migrate the Auth methods to use the same storage key/interface
6
+ return Promise.all([
7
+ kvStore.delete("demo-auth-logged-in-secret"),
8
+ kvStore.delete("jazz-clerk-auth"),
9
+ ]);
10
+ }
2
11
  //# sourceMappingURL=auth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,cAAc,iBAAiB,CAAC;AAEhC,MAAM,UAAU,oBAAoB;IAClC,MAAM,OAAO,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,CAAC;IAE1D,uEAAuE;IACvE,OAAO,OAAO,CAAC,GAAG,CAAC;QACjB,OAAO,CAAC,MAAM,CAAC,4BAA4B,CAAC;QAC5C,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC;KAClC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jazz-react-native",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -27,10 +27,10 @@
27
27
  "dependencies": {
28
28
  "@scure/base": "1.2.1",
29
29
  "react-native-quick-crypto": "1.0.0-beta.9",
30
- "jazz-react-core": "0.8.47",
31
- "cojson-transport-ws": "0.9.0",
30
+ "jazz-react-core": "0.8.48",
32
31
  "cojson": "0.9.0",
33
32
  "cojson-storage-rn-sqlite": "0.8.51",
33
+ "cojson-transport-ws": "0.9.0",
34
34
  "jazz-tools": "0.9.1"
35
35
  },
36
36
  "peerDependencies": {
package/src/auth/auth.ts CHANGED
@@ -1 +1,13 @@
1
+ import KvStoreContext from "../storage/kv-store-context.js";
2
+
1
3
  export * from "./DemoAuthUI.js";
4
+
5
+ export function clearUserCredentials() {
6
+ const kvStore = KvStoreContext.getInstance().getStorage();
7
+
8
+ // TODO: Migrate the Auth methods to use the same storage key/interface
9
+ return Promise.all([
10
+ kvStore.delete("demo-auth-logged-in-secret"),
11
+ kvStore.delete("jazz-clerk-auth"),
12
+ ]);
13
+ }