@better-auth/expo 1.2.9-beta.9 → 1.2.10-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.cjs +3 -1
- package/dist/client.mjs +3 -1
- package/dist/index.cjs +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +3 -3
package/dist/client.cjs
CHANGED
|
@@ -168,7 +168,9 @@ const expoClient = (opts) => {
|
|
|
168
168
|
options.headers = {
|
|
169
169
|
...options.headers,
|
|
170
170
|
cookie,
|
|
171
|
-
"expo-origin": getOrigin(scheme)
|
|
171
|
+
"expo-origin": getOrigin(scheme),
|
|
172
|
+
"x-skip-oauth-proxy": "true"
|
|
173
|
+
// skip oauth proxy for expo
|
|
172
174
|
};
|
|
173
175
|
if (options.body?.callbackURL) {
|
|
174
176
|
if (options.body.callbackURL.startsWith("/")) {
|
package/dist/client.mjs
CHANGED
|
@@ -148,7 +148,9 @@ const expoClient = (opts) => {
|
|
|
148
148
|
options.headers = {
|
|
149
149
|
...options.headers,
|
|
150
150
|
cookie,
|
|
151
|
-
"expo-origin": getOrigin(scheme)
|
|
151
|
+
"expo-origin": getOrigin(scheme),
|
|
152
|
+
"x-skip-oauth-proxy": "true"
|
|
153
|
+
// skip oauth proxy for expo
|
|
152
154
|
};
|
|
153
155
|
if (options.body?.callbackURL) {
|
|
154
156
|
if (options.body.callbackURL.startsWith("/")) {
|
package/dist/index.cjs
CHANGED
|
@@ -39,6 +39,10 @@ const expo = (options) => {
|
|
|
39
39
|
if (!location) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
+
const isProxyURL = location.includes("/oauth-proxy-callback");
|
|
43
|
+
if (isProxyURL) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
42
46
|
const trustedOrigins = ctx.context.trustedOrigins.filter(
|
|
43
47
|
(origin) => !origin.startsWith("http")
|
|
44
48
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -37,6 +37,10 @@ const expo = (options) => {
|
|
|
37
37
|
if (!location) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
+
const isProxyURL = location.includes("/oauth-proxy-callback");
|
|
41
|
+
if (isProxyURL) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
40
44
|
const trustedOrigins = ctx.context.trustedOrigins.filter(
|
|
41
45
|
(origin) => !origin.startsWith("http")
|
|
42
46
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"expo-web-browser": "~14.0.2",
|
|
40
40
|
"unbuild": "^3.5.0",
|
|
41
41
|
"vitest": "^1.6.0",
|
|
42
|
-
"better-auth": "1.2.
|
|
42
|
+
"better-auth": "1.2.10-beta.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"better-auth": "1.2.
|
|
45
|
+
"better-auth": "1.2.10-beta.1"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@better-fetch/fetch": "^1.1.18",
|