@better-auth/expo 1.6.3 → 1.7.0-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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-Bb01q3ai.js";
1
+ import { t as PACKAGE_VERSION } from "./version-CxmVFmt9.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-Bb01q3ai.js";
1
+ import { t as PACKAGE_VERSION } from "./version-CxmVFmt9.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";
@@ -53,7 +53,7 @@ const expo = (options) => {
53
53
  },
54
54
  hooks: { after: [{
55
55
  matcher(context) {
56
- return !!(context.path?.startsWith("/callback") || context.path?.startsWith("/oauth2/callback") || context.path?.startsWith("/magic-link/verify") || context.path?.startsWith("/verify-email"));
56
+ return !!(context.path?.startsWith("/callback") || context.path?.startsWith("/magic-link/verify") || context.path?.startsWith("/verify-email"));
57
57
  },
58
58
  handler: createAuthMiddleware(async (ctx) => {
59
59
  const headers = ctx.context.responseHeaders;
@@ -1,8 +1,7 @@
1
- import { t as PACKAGE_VERSION } from "../version-Bb01q3ai.js";
1
+ import { t as PACKAGE_VERSION } from "../version-CxmVFmt9.js";
2
2
  //#region src/plugins/last-login-method.ts
3
3
  const paths = [
4
4
  "/callback/",
5
- "/oauth2/callback/",
6
5
  "/sign-in/email",
7
6
  "/sign-up/email"
8
7
  ];
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.6.3";
3
+ const PACKAGE_VERSION = "1.7.0-beta.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.3",
3
+ "version": "1.7.0-beta.1",
4
4
  "description": "Better Auth integration for Expo and React Native applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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.3",
74
- "better-auth": "1.6.3"
73
+ "@better-auth/core": "1.7.0-beta.1",
74
+ "better-auth": "1.7.0-beta.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.3",
82
- "better-auth": "^1.6.3"
81
+ "@better-auth/core": "^1.7.0-beta.1",
82
+ "better-auth": "^1.7.0-beta.1"
83
83
  },
84
84
  "peerDependenciesMeta": {
85
85
  "expo-constants": {