@better-auth/expo 1.4.4 → 1.4.5
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 +1 -1
- package/dist/client.mjs +4 -21
- package/package.json +7 -5
package/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FocusManager, OnlineManager } from "better-auth/client";
|
|
1
2
|
import * as _better_fetch_fetch0 from "@better-fetch/fetch";
|
|
2
3
|
import { ClientFetchOption, ClientStore } from "@better-auth/core";
|
|
3
|
-
import { FocusManager, OnlineManager } from "better-auth/client";
|
|
4
4
|
|
|
5
5
|
//#region src/focus-manager.d.ts
|
|
6
6
|
declare function setupExpoFocusManager(): FocusManager;
|
package/dist/client.mjs
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
import Constants from "expo-constants";
|
|
2
2
|
import * as Linking from "expo-linking";
|
|
3
3
|
import { AppState, Platform } from "react-native";
|
|
4
|
-
import "
|
|
5
|
-
import "@better-auth/core/error";
|
|
6
|
-
import "@better-fetch/fetch";
|
|
4
|
+
import { kFocusManager, kOnlineManager } from "better-auth/client";
|
|
7
5
|
|
|
8
|
-
//#region ../better-auth/dist/parser-pHp5yoAv.mjs
|
|
9
|
-
const SPECIAL_VALUES = {
|
|
10
|
-
true: true,
|
|
11
|
-
false: false,
|
|
12
|
-
null: null,
|
|
13
|
-
undefined: void 0,
|
|
14
|
-
nan: NaN,
|
|
15
|
-
infinity: Number.POSITIVE_INFINITY,
|
|
16
|
-
"-infinity": Number.NEGATIVE_INFINITY
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region ../better-auth/dist/proxy-DplNCOES.mjs
|
|
21
|
-
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
22
|
-
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
23
|
-
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
6
|
//#region src/focus-manager.ts
|
|
27
7
|
var ExpoFocusManager = class {
|
|
28
8
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -291,6 +271,9 @@ const expoClient = (opts) => {
|
|
|
291
271
|
} catch (error) {
|
|
292
272
|
throw new Error("\"expo-web-browser\" is not installed as a dependency!", { cause: error });
|
|
293
273
|
}
|
|
274
|
+
if (Platform.OS === "android") try {
|
|
275
|
+
Browser.dismissAuthSession();
|
|
276
|
+
} catch (e) {}
|
|
294
277
|
const proxyURL = `${context.request.baseURL}/expo-authorization-proxy?authorizationURL=${encodeURIComponent(signInURL)}`;
|
|
295
278
|
const result = await Browser.openAuthSessionAsync(proxyURL, to);
|
|
296
279
|
if (result.type !== "success") return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -54,15 +54,16 @@
|
|
|
54
54
|
"expo-web-browser": "~14.2.0",
|
|
55
55
|
"react-native": "~0.80.2",
|
|
56
56
|
"tsdown": "^0.16.0",
|
|
57
|
-
"@better-auth/core": "1.4.
|
|
58
|
-
"better-auth": "1.4.
|
|
57
|
+
"@better-auth/core": "1.4.5",
|
|
58
|
+
"better-auth": "1.4.5"
|
|
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
|
-
"
|
|
65
|
+
"better-auth": "1.4.5",
|
|
66
|
+
"@better-auth/core": "1.4.5"
|
|
66
67
|
},
|
|
67
68
|
"peerDependenciesMeta": {
|
|
68
69
|
"expo-constants": {
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
},
|
|
81
82
|
"dependencies": {
|
|
82
83
|
"@better-fetch/fetch": "1.1.18",
|
|
83
|
-
"better-call": "1.1.
|
|
84
|
+
"better-call": "1.1.4",
|
|
84
85
|
"zod": "^4.1.12"
|
|
85
86
|
},
|
|
86
87
|
"files": [
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
],
|
|
89
90
|
"scripts": {
|
|
90
91
|
"test": "vitest",
|
|
92
|
+
"lint:package": "publint run --strict",
|
|
91
93
|
"build": "tsdown",
|
|
92
94
|
"dev": "tsdown --watch",
|
|
93
95
|
"typecheck": "tsc --project tsconfig.json"
|