@better-auth/expo 1.4.4-beta.1 → 1.4.4
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/dist/client.d.mts +3 -3
- package/dist/client.mjs +2 -2
- package/dist/index.d.mts +28 -3
- package/package.json +6 -7
package/dist/client.d.mts
CHANGED
|
@@ -106,18 +106,18 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
106
106
|
};
|
|
107
107
|
init(url: string, options: {
|
|
108
108
|
method?: string | undefined;
|
|
109
|
-
cache?: RequestCache | undefined;
|
|
110
|
-
credentials?: RequestCredentials | undefined;
|
|
111
109
|
headers?: (HeadersInit & (HeadersInit | {
|
|
112
110
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
113
111
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
114
112
|
authorization: "Bearer" | "Basic";
|
|
115
113
|
})) | undefined;
|
|
114
|
+
redirect?: RequestRedirect | undefined;
|
|
115
|
+
cache?: RequestCache | undefined;
|
|
116
|
+
credentials?: RequestCredentials | undefined;
|
|
116
117
|
integrity?: string | undefined;
|
|
117
118
|
keepalive?: boolean | undefined;
|
|
118
119
|
mode?: RequestMode | undefined;
|
|
119
120
|
priority?: RequestPriority | undefined;
|
|
120
|
-
redirect?: RequestRedirect | undefined;
|
|
121
121
|
referrer?: string | undefined;
|
|
122
122
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
123
123
|
signal?: (AbortSignal | null) | undefined;
|
package/dist/client.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "@better-auth/core/env";
|
|
|
5
5
|
import "@better-auth/core/error";
|
|
6
6
|
import "@better-fetch/fetch";
|
|
7
7
|
|
|
8
|
-
//#region ../better-auth/dist/parser-
|
|
8
|
+
//#region ../better-auth/dist/parser-pHp5yoAv.mjs
|
|
9
9
|
const SPECIAL_VALUES = {
|
|
10
10
|
true: true,
|
|
11
11
|
false: false,
|
|
@@ -17,7 +17,7 @@ const SPECIAL_VALUES = {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region ../better-auth/dist/proxy-
|
|
20
|
+
//#region ../better-auth/dist/proxy-DplNCOES.mjs
|
|
21
21
|
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
22
22
|
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
23
23
|
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as better_call0 from "better-call";
|
|
2
|
+
import * as z from "zod";
|
|
1
3
|
import * as better_auth0 from "better-auth";
|
|
2
4
|
|
|
3
5
|
//#region src/index.d.ts
|
|
@@ -20,12 +22,35 @@ declare const expo: (options?: ExpoOptions | undefined) => {
|
|
|
20
22
|
} | undefined>;
|
|
21
23
|
hooks: {
|
|
22
24
|
after: {
|
|
23
|
-
matcher(context:
|
|
24
|
-
handler:
|
|
25
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
26
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
25
27
|
}[];
|
|
26
28
|
};
|
|
27
29
|
endpoints: {
|
|
28
|
-
expoAuthorizationProxy:
|
|
30
|
+
expoAuthorizationProxy: better_call0.StrictEndpoint<"/expo-authorization-proxy", {
|
|
31
|
+
method: "GET";
|
|
32
|
+
query: z.ZodObject<{
|
|
33
|
+
authorizationURL: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
metadata: {
|
|
36
|
+
isAction: false;
|
|
37
|
+
};
|
|
38
|
+
} & {
|
|
39
|
+
use: any[];
|
|
40
|
+
}, {
|
|
41
|
+
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_call0.Status;
|
|
42
|
+
body: ({
|
|
43
|
+
message?: string;
|
|
44
|
+
code?: string;
|
|
45
|
+
cause?: unknown;
|
|
46
|
+
} & Record<string, any>) | undefined;
|
|
47
|
+
headers: HeadersInit;
|
|
48
|
+
statusCode: number;
|
|
49
|
+
name: string;
|
|
50
|
+
message: string;
|
|
51
|
+
stack?: string;
|
|
52
|
+
cause?: unknown;
|
|
53
|
+
}>;
|
|
29
54
|
};
|
|
30
55
|
};
|
|
31
56
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.4.4
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"expo-linking": "~7.1.7",
|
|
54
54
|
"expo-web-browser": "~14.2.0",
|
|
55
55
|
"react-native": "~0.80.2",
|
|
56
|
-
"tsdown": "^0.16.
|
|
57
|
-
"@better-auth/core": "1.4.4
|
|
58
|
-
"better-auth": "1.4.4
|
|
56
|
+
"tsdown": "^0.16.0",
|
|
57
|
+
"@better-auth/core": "1.4.4",
|
|
58
|
+
"better-auth": "1.4.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"expo-constants": ">=17.0.0",
|
|
62
62
|
"expo-linking": ">=7.0.0",
|
|
63
63
|
"expo-network": "^8.0.7",
|
|
64
64
|
"expo-web-browser": ">=14.0.0",
|
|
65
|
-
"@better-auth/core": "1.4.4
|
|
65
|
+
"@better-auth/core": "1.4.4"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"expo-constants": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@better-fetch/fetch": "1.1.18",
|
|
83
|
-
"better-call": "1.1.
|
|
83
|
+
"better-call": "1.1.3",
|
|
84
84
|
"zod": "^4.1.12"
|
|
85
85
|
},
|
|
86
86
|
"files": [
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
],
|
|
89
89
|
"scripts": {
|
|
90
90
|
"test": "vitest",
|
|
91
|
-
"lint:package": "publint run --strict",
|
|
92
91
|
"build": "tsdown",
|
|
93
92
|
"dev": "tsdown --watch",
|
|
94
93
|
"typecheck": "tsc --project tsconfig.json"
|