@better-auth/expo 1.3.30 → 1.3.32
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.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ const expo = (options) => {
|
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
17
|
async onRequest(request, ctx) {
|
|
18
|
-
if (
|
|
18
|
+
if (options?.disableOriginOverride || request.headers.get("origin")) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
const expoOrigin = request.headers.get("expo-origin");
|
package/dist/index.d.cts
CHANGED
|
@@ -4,9 +4,10 @@ import { z } from 'zod';
|
|
|
4
4
|
|
|
5
5
|
interface ExpoOptions {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Disable origin override for expo API routes
|
|
8
|
+
* When set to true, the origin header will not be overridden for expo API routes
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
disableOriginOverride?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const expo: (options?: ExpoOptions) => {
|
|
12
13
|
id: "expo";
|
package/dist/index.d.mts
CHANGED
|
@@ -4,9 +4,10 @@ import { z } from 'zod';
|
|
|
4
4
|
|
|
5
5
|
interface ExpoOptions {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Disable origin override for expo API routes
|
|
8
|
+
* When set to true, the origin header will not be overridden for expo API routes
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
disableOriginOverride?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const expo: (options?: ExpoOptions) => {
|
|
12
13
|
id: "expo";
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import { z } from 'zod';
|
|
|
4
4
|
|
|
5
5
|
interface ExpoOptions {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Disable origin override for expo API routes
|
|
8
|
+
* When set to true, the origin header will not be overridden for expo API routes
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
disableOriginOverride?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const expo: (options?: ExpoOptions) => {
|
|
12
13
|
id: "expo";
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ const expo = (options) => {
|
|
|
13
13
|
};
|
|
14
14
|
},
|
|
15
15
|
async onRequest(request, ctx) {
|
|
16
|
-
if (
|
|
16
|
+
if (options?.disableOriginOverride || request.headers.get("origin")) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
const expoOrigin = request.headers.get("expo-origin");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"expo-web-browser": "~14.2.0",
|
|
55
55
|
"react-native": "~0.80.2",
|
|
56
56
|
"unbuild": "^3.6.1",
|
|
57
|
-
"better-auth": "1.3.
|
|
57
|
+
"better-auth": "1.3.32"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"expo-constants": ">=17.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"expo-linking": ">=7.0.0",
|
|
63
63
|
"expo-secure-store": ">=14.0.0",
|
|
64
64
|
"expo-web-browser": ">=14.0.0",
|
|
65
|
-
"better-auth": "1.3.
|
|
65
|
+
"better-auth": "1.3.32"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@better-fetch/fetch": "1.1.18",
|