@better-auth/expo 1.4.2 → 1.4.4-beta.1

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 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;
109
111
  headers?: (HeadersInit & (HeadersInit | {
110
112
  accept: "application/json" | "text/plain" | "application/octet-stream";
111
113
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
112
114
  authorization: "Bearer" | "Basic";
113
115
  })) | undefined;
114
- redirect?: RequestRedirect | undefined;
115
- cache?: RequestCache | undefined;
116
- credentials?: RequestCredentials | undefined;
117
116
  integrity?: string | undefined;
118
117
  keepalive?: boolean | undefined;
119
118
  mode?: RequestMode | undefined;
120
119
  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
@@ -17,7 +17,7 @@ const SPECIAL_VALUES = {
17
17
  };
18
18
 
19
19
  //#endregion
20
- //#region ../better-auth/dist/proxy-BMMJa46T.mjs
20
+ //#region ../better-auth/dist/proxy-BM5uXHJk.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,5 +1,3 @@
1
- import * as better_call0 from "better-call";
2
- import * as z from "zod";
3
1
  import * as better_auth0 from "better-auth";
4
2
 
5
3
  //#region src/index.d.ts
@@ -22,35 +20,12 @@ declare const expo: (options?: ExpoOptions | undefined) => {
22
20
  } | undefined>;
23
21
  hooks: {
24
22
  after: {
25
- matcher(context: better_auth0.HookEndpointContext): boolean;
26
- handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
23
+ matcher(context: any): boolean;
24
+ handler: any;
27
25
  }[];
28
26
  };
29
27
  endpoints: {
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
- }>;
28
+ expoAuthorizationProxy: any;
54
29
  };
55
30
  };
56
31
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/expo",
3
- "version": "1.4.2",
3
+ "version": "1.4.4-beta.1",
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.0",
57
- "@better-auth/core": "1.4.2",
58
- "better-auth": "1.4.2"
56
+ "tsdown": "^0.16.6",
57
+ "@better-auth/core": "1.4.4-beta.1",
58
+ "better-auth": "1.4.4-beta.1"
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.2"
65
+ "@better-auth/core": "1.4.4-beta.1"
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.0",
83
+ "better-call": "1.1.1",
84
84
  "zod": "^4.1.12"
85
85
  },
86
86
  "files": [
@@ -88,6 +88,7 @@
88
88
  ],
89
89
  "scripts": {
90
90
  "test": "vitest",
91
+ "lint:package": "publint run --strict",
91
92
  "build": "tsdown",
92
93
  "dev": "tsdown --watch",
93
94
  "typecheck": "tsc --project tsconfig.json"