@lunora/react-native 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +2 -0
- package/dist/auth.d.mts +2 -0
- package/dist/auth.d.ts +2 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/auth.d.mts
CHANGED
|
@@ -19,6 +19,7 @@ export { expoClient, setupExpoFocusManager, setupExpoOnlineManager } from '@bett
|
|
|
19
19
|
* client.setAuthToken(token);
|
|
20
20
|
* client.setWsToken(token ?? undefined);
|
|
21
21
|
* ```
|
|
22
|
+
* @experimental
|
|
22
23
|
*/
|
|
23
24
|
declare const expoBearerToken: (authClient: {
|
|
24
25
|
getCookie: () => string;
|
|
@@ -27,6 +28,7 @@ declare const expoBearerToken: (authClient: {
|
|
|
27
28
|
* The slice of a key/value store the better-auth Expo plugin needs — the shape
|
|
28
29
|
* of `expo-secure-store` (a synchronous `getItem`, plus `setItem`). Pass Expo
|
|
29
30
|
* `SecureStore` straight in.
|
|
31
|
+
* @experimental
|
|
30
32
|
*/
|
|
31
33
|
interface SecureStorageLike {
|
|
32
34
|
getItem: (key: string) => null | string;
|
package/dist/auth.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { expoClient, setupExpoFocusManager, setupExpoOnlineManager } from '@bett
|
|
|
19
19
|
* client.setAuthToken(token);
|
|
20
20
|
* client.setWsToken(token ?? undefined);
|
|
21
21
|
* ```
|
|
22
|
+
* @experimental
|
|
22
23
|
*/
|
|
23
24
|
declare const expoBearerToken: (authClient: {
|
|
24
25
|
getCookie: () => string;
|
|
@@ -27,6 +28,7 @@ declare const expoBearerToken: (authClient: {
|
|
|
27
28
|
* The slice of a key/value store the better-auth Expo plugin needs — the shape
|
|
28
29
|
* of `expo-secure-store` (a synchronous `getItem`, plus `setItem`). Pass Expo
|
|
29
30
|
* `SecureStore` straight in.
|
|
31
|
+
* @experimental
|
|
30
32
|
*/
|
|
31
33
|
interface SecureStorageLike {
|
|
32
34
|
getItem: (key: string) => null | string;
|
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export * from '@lunora/react';
|
|
|
12
12
|
* `client.setAuthToken` / `setWsToken` (see the package README). A bearer avoids
|
|
13
13
|
* the `Cookie` header the runtime's CSRF guard rejects on `Origin`-less native
|
|
14
14
|
* requests.
|
|
15
|
+
* @experimental
|
|
15
16
|
*/
|
|
16
17
|
type AuthHeadersFactory = () => Record<string, string> | undefined;
|
|
17
18
|
/**
|
|
@@ -28,6 +29,7 @@ type AuthHeadersFactory = () => Record<string, string> | undefined;
|
|
|
28
29
|
* The `persistence`, `fetch`, and `WebSocket` fields of `LunoraClientOptions`
|
|
29
30
|
* are still accepted and take precedence when you need full control; the two
|
|
30
31
|
* conveniences are sugar over exactly those seams.
|
|
32
|
+
* @experimental
|
|
31
33
|
*/
|
|
32
34
|
interface CreateLunoraClientOptions extends LunoraClientOptions {
|
|
33
35
|
/**
|
|
@@ -70,6 +72,7 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
|
|
|
70
72
|
* explicit `persistence`, `fetch`, or `WebSocket` takes precedence over the
|
|
71
73
|
* convenience derived from `storage` / `getAuthHeaders`. See the package README
|
|
72
74
|
* for a full setup example.
|
|
75
|
+
* @experimental
|
|
73
76
|
*/
|
|
74
77
|
declare const createLunoraClient: (options: CreateLunoraClientOptions) => LunoraClient;
|
|
75
78
|
export { type AuthHeadersFactory, type CreateLunoraClientOptions, createLunoraClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from '@lunora/react';
|
|
|
12
12
|
* `client.setAuthToken` / `setWsToken` (see the package README). A bearer avoids
|
|
13
13
|
* the `Cookie` header the runtime's CSRF guard rejects on `Origin`-less native
|
|
14
14
|
* requests.
|
|
15
|
+
* @experimental
|
|
15
16
|
*/
|
|
16
17
|
type AuthHeadersFactory = () => Record<string, string> | undefined;
|
|
17
18
|
/**
|
|
@@ -28,6 +29,7 @@ type AuthHeadersFactory = () => Record<string, string> | undefined;
|
|
|
28
29
|
* The `persistence`, `fetch`, and `WebSocket` fields of `LunoraClientOptions`
|
|
29
30
|
* are still accepted and take precedence when you need full control; the two
|
|
30
31
|
* conveniences are sugar over exactly those seams.
|
|
32
|
+
* @experimental
|
|
31
33
|
*/
|
|
32
34
|
interface CreateLunoraClientOptions extends LunoraClientOptions {
|
|
33
35
|
/**
|
|
@@ -70,6 +72,7 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
|
|
|
70
72
|
* explicit `persistence`, `fetch`, or `WebSocket` takes precedence over the
|
|
71
73
|
* convenience derived from `storage` / `getAuthHeaders`. See the package README
|
|
72
74
|
* for a full setup example.
|
|
75
|
+
* @experimental
|
|
73
76
|
*/
|
|
74
77
|
declare const createLunoraClient: (options: CreateLunoraClientOptions) => LunoraClient;
|
|
75
78
|
export { type AuthHeadersFactory, type CreateLunoraClientOptions, createLunoraClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/react-native",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "React Native / Expo integration for Lunora: an AsyncStorage-backed client factory, the useQuery/useMutation/useSubscription hooks, and a one-call better-auth Expo client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@lunora/client": "1.0.0-alpha.
|
|
54
|
-
"@lunora/react": "1.0.0-alpha.
|
|
53
|
+
"@lunora/client": "1.0.0-alpha.23",
|
|
54
|
+
"@lunora/react": "1.0.0-alpha.27"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@better-auth/expo": "^1.6.23",
|