@better-auth/expo 1.4.7-beta.2 → 1.4.7-beta.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 +2 -2
- package/dist/index.d.mts +2 -4
- package/dist/index.mjs +2 -1
- package/package.json +7 -7
package/dist/client.d.mts
CHANGED
|
@@ -104,7 +104,7 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
104
104
|
hooks: {
|
|
105
105
|
onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): Promise<void>;
|
|
106
106
|
};
|
|
107
|
-
init(url: string, options: {
|
|
107
|
+
init(url: string, options: ({
|
|
108
108
|
method?: string | undefined;
|
|
109
109
|
headers?: (HeadersInit & (HeadersInit | {
|
|
110
110
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
@@ -157,7 +157,7 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
157
157
|
output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
158
158
|
errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
|
|
159
159
|
disableValidation?: boolean | undefined;
|
|
160
|
-
} | undefined): Promise<{
|
|
160
|
+
} & Record<string, any>) | undefined): Promise<{
|
|
161
161
|
url: string;
|
|
162
162
|
options: ClientFetchOption;
|
|
163
163
|
}>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as zod0 from "zod";
|
|
2
1
|
import * as better_auth0 from "better-auth";
|
|
2
|
+
import * as zod0 from "zod";
|
|
3
3
|
import * as better_call0 from "better-call";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -33,10 +33,8 @@ declare const expo: (options?: ExpoOptions | undefined) => {
|
|
|
33
33
|
authorizationURL: zod0.ZodString;
|
|
34
34
|
}, better_auth0.$strip>;
|
|
35
35
|
metadata: {
|
|
36
|
-
|
|
36
|
+
readonly scope: "server";
|
|
37
37
|
};
|
|
38
|
-
} & {
|
|
39
|
-
use: any[];
|
|
40
38
|
}, {
|
|
41
39
|
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
40
|
body: ({
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAuthMiddleware } from "@better-auth/core/api";
|
|
2
|
+
import { HIDE_METADATA } from "better-auth";
|
|
2
3
|
import { APIError, createAuthEndpoint } from "better-auth/api";
|
|
3
4
|
import * as z from "zod";
|
|
4
5
|
|
|
@@ -6,7 +7,7 @@ import * as z from "zod";
|
|
|
6
7
|
const expoAuthorizationProxy = createAuthEndpoint("/expo-authorization-proxy", {
|
|
7
8
|
method: "GET",
|
|
8
9
|
query: z.object({ authorizationURL: z.string() }),
|
|
9
|
-
metadata:
|
|
10
|
+
metadata: HIDE_METADATA
|
|
10
11
|
}, async (ctx) => {
|
|
11
12
|
const { authorizationURL } = ctx.query;
|
|
12
13
|
const state = new URL(authorizationURL).searchParams.get("state");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.4.7-beta.
|
|
3
|
+
"version": "1.4.7-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT",
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@better-fetch/fetch": "1.1.
|
|
57
|
+
"@better-fetch/fetch": "1.1.21",
|
|
58
58
|
"@types/better-sqlite3": "^7.6.13",
|
|
59
59
|
"better-sqlite3": "^12.2.0",
|
|
60
60
|
"expo-constants": "~17.1.7",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"expo-web-browser": "~14.2.0",
|
|
64
64
|
"react-native": "~0.80.2",
|
|
65
65
|
"tsdown": "^0.17.2",
|
|
66
|
-
"
|
|
67
|
-
"better-auth": "1.4.7-beta.
|
|
66
|
+
"better-auth": "1.4.7-beta.4",
|
|
67
|
+
"@better-auth/core": "1.4.7-beta.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"expo-constants": ">=17.0.0",
|
|
71
71
|
"expo-linking": ">=7.0.0",
|
|
72
72
|
"expo-network": "^8.0.7",
|
|
73
73
|
"expo-web-browser": ">=14.0.0",
|
|
74
|
-
"
|
|
75
|
-
"better-auth": "1.4.7-beta.
|
|
74
|
+
"better-auth": "1.4.7-beta.4",
|
|
75
|
+
"@better-auth/core": "1.4.7-beta.4"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
78
78
|
"expo-constants": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@better-fetch/fetch": "1.1.
|
|
92
|
+
"@better-fetch/fetch": "1.1.21",
|
|
93
93
|
"better-call": "1.1.5",
|
|
94
94
|
"zod": "^4.1.12"
|
|
95
95
|
},
|