jazz-react-native 0.9.4 → 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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/auth/auth.d.ts +1 -0
- package/dist/auth/auth.js +9 -0
- package/dist/auth/auth.js.map +1 -1
- package/package.json +4 -4
- package/src/auth/auth.ts +12 -0
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
package/dist/auth/auth.d.ts
CHANGED
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
|
package/dist/auth/auth.js.map
CHANGED
@@ -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
|
+
"version": "0.9.5",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.js",
|
@@ -27,11 +27,11 @@
|
|
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.48",
|
30
31
|
"cojson": "0.9.0",
|
31
|
-
"cojson-transport-ws": "0.9.0",
|
32
32
|
"cojson-storage-rn-sqlite": "0.8.51",
|
33
|
-
"
|
34
|
-
"jazz-
|
33
|
+
"cojson-transport-ws": "0.9.0",
|
34
|
+
"jazz-tools": "0.9.1"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
37
37
|
"@react-native-community/netinfo": "*",
|
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
|
+
}
|