@better-auth/expo 1.4.6-beta.6 → 1.4.7-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/client.mjs +2 -2
- package/package.json +7 -6
package/dist/client.mjs
CHANGED
|
@@ -139,7 +139,7 @@ function getCookie(cookie) {
|
|
|
139
139
|
let parsed = {};
|
|
140
140
|
try {
|
|
141
141
|
parsed = JSON.parse(cookie);
|
|
142
|
-
} catch
|
|
142
|
+
} catch {}
|
|
143
143
|
return Object.entries(parsed).reduce((acc, [key, value]) => {
|
|
144
144
|
if (value.expires && new Date(value.expires) < /* @__PURE__ */ new Date()) return acc;
|
|
145
145
|
return `${acc}; ${key}=${value.value}`;
|
|
@@ -273,7 +273,7 @@ const expoClient = (opts) => {
|
|
|
273
273
|
}
|
|
274
274
|
if (Platform.OS === "android") try {
|
|
275
275
|
Browser.dismissAuthSession();
|
|
276
|
-
} catch
|
|
276
|
+
} catch {}
|
|
277
277
|
const proxyURL = `${context.request.baseURL}/expo-authorization-proxy?authorizationURL=${encodeURIComponent(signInURL)}`;
|
|
278
278
|
const result = await Browser.openAuthSessionAsync(proxyURL, to);
|
|
279
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.7-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
"expo-linking": "~7.1.7",
|
|
63
63
|
"expo-web-browser": "~14.2.0",
|
|
64
64
|
"react-native": "~0.80.2",
|
|
65
|
-
"tsdown": "^0.17.
|
|
66
|
-
"@better-auth/core": "1.4.
|
|
67
|
-
"better-auth": "1.4.
|
|
65
|
+
"tsdown": "^0.17.2",
|
|
66
|
+
"@better-auth/core": "1.4.7-beta.2",
|
|
67
|
+
"better-auth": "1.4.7-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.
|
|
75
|
-
"better-auth": "1.4.
|
|
74
|
+
"@better-auth/core": "1.4.7-beta.2",
|
|
75
|
+
"better-auth": "1.4.7-beta.2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
78
78
|
"expo-constants": {
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
"scripts": {
|
|
100
100
|
"test": "vitest",
|
|
101
101
|
"coverage": "vitest run --coverage",
|
|
102
|
+
"lint:types": "attw --profile esm-only --pack .",
|
|
102
103
|
"lint:package": "publint run --strict",
|
|
103
104
|
"build": "tsdown",
|
|
104
105
|
"dev": "tsdown --watch",
|