@better-auth/expo 1.4.7 → 1.4.8-beta.2

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/index.d.mts CHANGED
@@ -50,6 +50,7 @@ declare const expo: (options?: ExpoOptions | undefined) => {
50
50
  cause?: unknown;
51
51
  }>;
52
52
  };
53
+ options: ExpoOptions | undefined;
53
54
  };
54
55
  //#endregion
55
56
  export { ExpoOptions, expo };
package/dist/index.mjs CHANGED
@@ -54,7 +54,8 @@ const expo = (options) => {
54
54
  ctx.setHeader("location", url.toString());
55
55
  })
56
56
  }] },
57
- endpoints: { expoAuthorizationProxy }
57
+ endpoints: { expoAuthorizationProxy },
58
+ options
58
59
  };
59
60
  };
60
61
 
@@ -1,11 +1,12 @@
1
1
  import * as _better_fetch_fetch15 from "@better-fetch/fetch";
2
+ import { Awaitable } from "@better-auth/core";
2
3
 
3
4
  //#region src/plugins/last-login-method.d.ts
4
5
  interface LastLoginMethodClientConfig {
5
6
  storage: {
6
7
  setItem: (key: string, value: string) => any;
7
8
  getItem: (key: string) => string | null;
8
- deleteItemAsync: (key: string) => Promise<void>;
9
+ deleteItemAsync: (key: string) => Awaitable<void>;
9
10
  };
10
11
  /**
11
12
  * Prefix for local storage keys (e.g., "my-app_last_login_method")
@@ -15,7 +16,7 @@ interface LastLoginMethodClientConfig {
15
16
  /**
16
17
  * Custom resolve method for retrieving the last login method
17
18
  */
18
- customResolveMethod?: ((url: string | URL) => Promise<string | undefined | null> | string | undefined | null) | undefined;
19
+ customResolveMethod?: ((url: string | URL) => Awaitable<string | undefined | null>) | undefined;
19
20
  }
20
21
  declare const lastLoginMethodClient: (config: LastLoginMethodClientConfig) => {
21
22
  id: "last-login-method-expo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/expo",
3
- "version": "1.4.7",
3
+ "version": "1.4.8-beta.2",
4
4
  "type": "module",
5
5
  "description": "Better Auth integration for Expo and React Native applications.",
6
6
  "main": "dist/index.mjs",
@@ -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
- "@better-auth/core": "1.4.7",
67
- "better-auth": "1.4.7"
66
+ "@better-auth/core": "1.4.8-beta.2",
67
+ "better-auth": "1.4.8-beta.2"
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
- "@better-auth/core": "1.4.7",
75
- "better-auth": "1.4.7"
74
+ "better-auth": "1.4.8-beta.2",
75
+ "@better-auth/core": "1.4.8-beta.2"
76
76
  },
77
77
  "peerDependenciesMeta": {
78
78
  "expo-constants": {