@better-auth/expo 1.6.0-beta.0 → 1.6.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-p6M-LGsA.js";
1
+ import { t as PACKAGE_VERSION } from "./version-DLYVg9h6.js";
2
2
  import { safeJSONParse } from "@better-auth/core/utils/json";
3
3
  import { SECURE_COOKIE_PREFIX, parseSetCookieHeader, parseSetCookieHeader as parseSetCookieHeader$1, stripSecureCookiePrefix } from "better-auth/cookies";
4
4
  import Constants from "expo-constants";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as better_auth0 from "better-auth";
2
+ import * as zod from "zod";
2
3
  import * as better_call0 from "better-call";
4
+ import * as zod_v4_core0 from "zod/v4/core";
3
5
 
4
6
  //#region src/index.d.ts
5
7
  interface ExpoOptions {
@@ -30,14 +32,20 @@ declare const expo: (options?: ExpoOptions | undefined) => {
30
32
  hooks: {
31
33
  after: {
32
34
  matcher(context: better_auth0.HookEndpointContext): boolean;
33
- handler: better_call0.Middleware<(inputContext: Record<string, any>) => Promise<void>>;
35
+ handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
34
36
  }[];
35
37
  };
36
38
  endpoints: {
37
- expoAuthorizationProxy: better_call0.Endpoint<"/expo-authorization-proxy", "GET", undefined, {
38
- authorizationURL: string;
39
- oauthState?: string | undefined;
40
- }, [], {
39
+ expoAuthorizationProxy: better_call0.StrictEndpoint<"/expo-authorization-proxy", {
40
+ method: "GET";
41
+ query: zod.ZodObject<{
42
+ authorizationURL: zod.ZodString;
43
+ oauthState: zod.ZodOptional<zod.ZodString>;
44
+ }, zod_v4_core0.$strip>;
45
+ metadata: {
46
+ readonly scope: "server";
47
+ };
48
+ }, {
41
49
  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
50
  body: ({
43
51
  message?: string;
@@ -50,9 +58,7 @@ declare const expo: (options?: ExpoOptions | undefined) => {
50
58
  message: string;
51
59
  stack?: string;
52
60
  cause?: unknown;
53
- }, {
54
- readonly scope: "server";
55
- }, undefined>;
61
+ }>;
56
62
  };
57
63
  options: ExpoOptions | undefined;
58
64
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-p6M-LGsA.js";
1
+ import { t as PACKAGE_VERSION } from "./version-DLYVg9h6.js";
2
2
  import { createAuthMiddleware } from "@better-auth/core/api";
3
3
  import { HIDE_METADATA } from "better-auth";
4
4
  import { APIError, createAuthEndpoint } from "better-auth/api";
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "../version-p6M-LGsA.js";
1
+ import { t as PACKAGE_VERSION } from "../version-DLYVg9h6.js";
2
2
  //#region src/plugins/last-login-method.ts
3
3
  const paths = [
4
4
  "/callback/",
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.6.0-beta.0";
3
+ const PACKAGE_VERSION = "1.6.1";
4
4
  //#endregion
5
5
  export { PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/expo",
3
- "version": "1.6.0-beta.0",
3
+ "version": "1.6.1",
4
4
  "description": "Better Auth integration for Expo and React Native applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@better-fetch/fetch": "1.1.21",
62
- "better-call": "2.0.3",
62
+ "better-call": "1.3.5",
63
63
  "zod": "^4.3.6"
64
64
  },
65
65
  "devDependencies": {
@@ -70,16 +70,16 @@
70
70
  "expo-web-browser": "~55.0.9",
71
71
  "react-native": "~0.84.1",
72
72
  "tsdown": "0.21.1",
73
- "@better-auth/core": "1.6.0-beta.0",
74
- "better-auth": "1.6.0-beta.0"
73
+ "@better-auth/core": "1.6.1",
74
+ "better-auth": "1.6.1"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "expo-constants": ">=17.0.0",
78
78
  "expo-linking": ">=7.0.0",
79
79
  "expo-network": ">=8.0.7",
80
80
  "expo-web-browser": ">=14.0.0",
81
- "@better-auth/core": "^1.6.0-beta.0",
82
- "better-auth": "^1.6.0-beta.0"
81
+ "@better-auth/core": "^1.6.1",
82
+ "better-auth": "^1.6.1"
83
83
  },
84
84
  "peerDependenciesMeta": {
85
85
  "expo-constants": {