@better-auth/expo 1.7.0-rc.2 → 1.7.0-rc.3
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.ts
CHANGED
|
@@ -102,7 +102,7 @@ declare function storageAdapter(storage: {
|
|
|
102
102
|
declare const expoClient: (opts: ExpoClientOptions) => {
|
|
103
103
|
id: "expo";
|
|
104
104
|
version: string;
|
|
105
|
-
getActions(
|
|
105
|
+
getActions(_fetch: unknown, $store: ClientStore): {
|
|
106
106
|
/**
|
|
107
107
|
* Get the stored cookie.
|
|
108
108
|
*
|
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-xoFrTW0m.js";
|
|
2
2
|
import { safeJSONParse } from "@better-auth/core/utils/json";
|
|
3
3
|
import { SECURE_COOKIE_PREFIX, parseSetCookieHeader, parseSetCookieHeader as parseSetCookieHeader$1, stripSecureCookiePrefix } from "better-auth/cookies";
|
|
4
4
|
import Constants from "expo-constants";
|
|
@@ -81,6 +81,9 @@ if (Platform.OS !== "web") {
|
|
|
81
81
|
setupExpoFocusManager();
|
|
82
82
|
setupExpoOnlineManager();
|
|
83
83
|
}
|
|
84
|
+
function defineExpoClientPlugin(plugin) {
|
|
85
|
+
return plugin;
|
|
86
|
+
}
|
|
84
87
|
function getSetCookie(header, prevCookie) {
|
|
85
88
|
const parsed = parseSetCookieHeader$1(header);
|
|
86
89
|
const toSetCookie = safeJSONParse(prevCookie) ?? {};
|
|
@@ -280,10 +283,10 @@ const expoClient = (opts) => {
|
|
|
280
283
|
const rawScheme = opts?.scheme || Constants.expoConfig?.scheme || Constants.platform?.scheme;
|
|
281
284
|
const scheme = Array.isArray(rawScheme) ? rawScheme[0] : rawScheme;
|
|
282
285
|
if (!scheme && !isWeb) throw new Error("Scheme not found in app.json. Please provide a scheme in the options.");
|
|
283
|
-
return {
|
|
286
|
+
return defineExpoClientPlugin({
|
|
284
287
|
id: "expo",
|
|
285
288
|
version: PACKAGE_VERSION,
|
|
286
|
-
getActions(
|
|
289
|
+
getActions(_fetch, $store) {
|
|
287
290
|
store = $store;
|
|
288
291
|
const sessionAtom = $store.atoms.session;
|
|
289
292
|
if (!isWeb && !opts?.disableCache && sessionAtom) {
|
|
@@ -415,7 +418,7 @@ getCookie: () => {
|
|
|
415
418
|
};
|
|
416
419
|
}
|
|
417
420
|
}]
|
|
418
|
-
};
|
|
421
|
+
});
|
|
419
422
|
};
|
|
420
423
|
//#endregion
|
|
421
424
|
export { expoClient, getCookie, getSetCookie, hasBetterAuthCookies, normalizeCookieName, parseSetCookieHeader, setupExpoFocusManager, setupExpoOnlineManager, storageAdapter };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-xoFrTW0m.js";
|
|
2
2
|
import { createAuthMiddleware } from "@better-auth/core/api";
|
|
3
3
|
import { HIDE_METADATA } from "better-auth";
|
|
4
4
|
import { APIError, createAuthEndpoint } from "better-auth/api";
|
package/dist/plugins/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.7.0-rc.
|
|
3
|
+
"version": "1.7.0-rc.3",
|
|
4
4
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
"expo-web-browser": "~56.0.5",
|
|
71
71
|
"react-native": "~0.86.0",
|
|
72
72
|
"tsdown": "0.22.7",
|
|
73
|
-
"@better-auth/core": "1.7.0-rc.
|
|
74
|
-
"better-auth": "1.7.0-rc.
|
|
73
|
+
"@better-auth/core": "1.7.0-rc.3",
|
|
74
|
+
"better-auth": "1.7.0-rc.3"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"expo-constants": ">=17.0.0",
|
|
78
78
|
"expo-linking": ">=7.0.0",
|
|
79
79
|
"expo-network": ">=8.0.7",
|
|
80
80
|
"expo-web-browser": ">=14.0.0",
|
|
81
|
-
"@better-auth/core": "^1.7.0-rc.
|
|
82
|
-
"better-auth": "^1.7.0-rc.
|
|
81
|
+
"@better-auth/core": "^1.7.0-rc.3",
|
|
82
|
+
"better-auth": "^1.7.0-rc.3"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"expo-constants": {
|