@better-auth/expo 1.4.0-beta.14 → 1.4.0-beta.15
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.cts +12 -12
- package/dist/client.d.ts +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +5 -5
package/dist/client.d.cts
CHANGED
|
@@ -5,17 +5,17 @@ import { ClientStore } from "@better-auth/core";
|
|
|
5
5
|
//#region src/client.d.ts
|
|
6
6
|
interface CookieAttributes {
|
|
7
7
|
value: string;
|
|
8
|
-
expires?: Date;
|
|
9
|
-
"max-age"?: number;
|
|
10
|
-
domain?: string;
|
|
11
|
-
path?: string;
|
|
12
|
-
secure?: boolean;
|
|
13
|
-
httpOnly?: boolean;
|
|
14
|
-
sameSite?: "Strict" | "Lax" | "None";
|
|
8
|
+
expires?: Date | undefined;
|
|
9
|
+
"max-age"?: number | undefined;
|
|
10
|
+
domain?: string | undefined;
|
|
11
|
+
path?: string | undefined;
|
|
12
|
+
secure?: boolean | undefined;
|
|
13
|
+
httpOnly?: boolean | undefined;
|
|
14
|
+
sameSite?: ("Strict" | "Lax" | "None") | undefined;
|
|
15
15
|
}
|
|
16
16
|
declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
|
|
17
17
|
interface ExpoClientOptions {
|
|
18
|
-
scheme?: string;
|
|
18
|
+
scheme?: string | undefined;
|
|
19
19
|
storage: {
|
|
20
20
|
setItem: (key: string, value: string) => any;
|
|
21
21
|
getItem: (key: string) => string | null;
|
|
@@ -24,17 +24,17 @@ interface ExpoClientOptions {
|
|
|
24
24
|
* Prefix for local storage keys (e.g., "my-app_cookie", "my-app_session_data")
|
|
25
25
|
* @default "better-auth"
|
|
26
26
|
*/
|
|
27
|
-
storagePrefix?: string;
|
|
27
|
+
storagePrefix?: string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Prefix for server cookie names to filter (e.g., "better-auth.session_token")
|
|
30
30
|
* This is used to identify which cookies belong to better-auth to prevent
|
|
31
31
|
* infinite refetching when third-party cookies are set.
|
|
32
32
|
* @default "better-auth"
|
|
33
33
|
*/
|
|
34
|
-
cookiePrefix?: string;
|
|
35
|
-
disableCache?: boolean;
|
|
34
|
+
cookiePrefix?: string | undefined;
|
|
35
|
+
disableCache?: boolean | undefined;
|
|
36
36
|
}
|
|
37
|
-
declare function getSetCookie(header: string, prevCookie?: string): string;
|
|
37
|
+
declare function getSetCookie(header: string, prevCookie?: string | undefined): string;
|
|
38
38
|
declare function getCookie(cookie: string): string;
|
|
39
39
|
/**
|
|
40
40
|
* Check if the Set-Cookie header contains session-related better-auth cookies.
|
package/dist/client.d.ts
CHANGED
|
@@ -5,17 +5,17 @@ import { ClientStore } from "@better-auth/core";
|
|
|
5
5
|
//#region src/client.d.ts
|
|
6
6
|
interface CookieAttributes {
|
|
7
7
|
value: string;
|
|
8
|
-
expires?: Date;
|
|
9
|
-
"max-age"?: number;
|
|
10
|
-
domain?: string;
|
|
11
|
-
path?: string;
|
|
12
|
-
secure?: boolean;
|
|
13
|
-
httpOnly?: boolean;
|
|
14
|
-
sameSite?: "Strict" | "Lax" | "None";
|
|
8
|
+
expires?: Date | undefined;
|
|
9
|
+
"max-age"?: number | undefined;
|
|
10
|
+
domain?: string | undefined;
|
|
11
|
+
path?: string | undefined;
|
|
12
|
+
secure?: boolean | undefined;
|
|
13
|
+
httpOnly?: boolean | undefined;
|
|
14
|
+
sameSite?: ("Strict" | "Lax" | "None") | undefined;
|
|
15
15
|
}
|
|
16
16
|
declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
|
|
17
17
|
interface ExpoClientOptions {
|
|
18
|
-
scheme?: string;
|
|
18
|
+
scheme?: string | undefined;
|
|
19
19
|
storage: {
|
|
20
20
|
setItem: (key: string, value: string) => any;
|
|
21
21
|
getItem: (key: string) => string | null;
|
|
@@ -24,17 +24,17 @@ interface ExpoClientOptions {
|
|
|
24
24
|
* Prefix for local storage keys (e.g., "my-app_cookie", "my-app_session_data")
|
|
25
25
|
* @default "better-auth"
|
|
26
26
|
*/
|
|
27
|
-
storagePrefix?: string;
|
|
27
|
+
storagePrefix?: string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Prefix for server cookie names to filter (e.g., "better-auth.session_token")
|
|
30
30
|
* This is used to identify which cookies belong to better-auth to prevent
|
|
31
31
|
* infinite refetching when third-party cookies are set.
|
|
32
32
|
* @default "better-auth"
|
|
33
33
|
*/
|
|
34
|
-
cookiePrefix?: string;
|
|
35
|
-
disableCache?: boolean;
|
|
34
|
+
cookiePrefix?: string | undefined;
|
|
35
|
+
disableCache?: boolean | undefined;
|
|
36
36
|
}
|
|
37
|
-
declare function getSetCookie(header: string, prevCookie?: string): string;
|
|
37
|
+
declare function getSetCookie(header: string, prevCookie?: string | undefined): string;
|
|
38
38
|
declare function getCookie(cookie: string): string;
|
|
39
39
|
/**
|
|
40
40
|
* Check if the Set-Cookie header contains session-related better-auth cookies.
|
package/dist/index.d.cts
CHANGED
|
@@ -8,9 +8,9 @@ interface ExpoOptions {
|
|
|
8
8
|
* Disable origin override for expo API routes
|
|
9
9
|
* When set to true, the origin header will not be overridden for expo API routes
|
|
10
10
|
*/
|
|
11
|
-
disableOriginOverride?: boolean;
|
|
11
|
+
disableOriginOverride?: boolean | undefined;
|
|
12
12
|
}
|
|
13
|
-
declare const expo: (options?: ExpoOptions) => {
|
|
13
|
+
declare const expo: (options?: ExpoOptions | undefined) => {
|
|
14
14
|
id: "expo";
|
|
15
15
|
init: (ctx: better_auth0.AuthContext) => {
|
|
16
16
|
options: {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ interface ExpoOptions {
|
|
|
8
8
|
* Disable origin override for expo API routes
|
|
9
9
|
* When set to true, the origin header will not be overridden for expo API routes
|
|
10
10
|
*/
|
|
11
|
-
disableOriginOverride?: boolean;
|
|
11
|
+
disableOriginOverride?: boolean | undefined;
|
|
12
12
|
}
|
|
13
|
-
declare const expo: (options?: ExpoOptions) => {
|
|
13
|
+
declare const expo: (options?: ExpoOptions | undefined) => {
|
|
14
14
|
id: "expo";
|
|
15
15
|
init: (ctx: better_auth0.AuthContext) => {
|
|
16
16
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Better Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"expo-secure-store": "~14.2.3",
|
|
57
57
|
"expo-web-browser": "~14.2.0",
|
|
58
58
|
"react-native": "~0.80.2",
|
|
59
|
-
"tsdown": "^0.15.
|
|
60
|
-
"@better-auth/core": "1.4.0-beta.
|
|
61
|
-
"better-auth": "1.4.0-beta.
|
|
59
|
+
"tsdown": "^0.15.11",
|
|
60
|
+
"@better-auth/core": "1.4.0-beta.15",
|
|
61
|
+
"better-auth": "1.4.0-beta.15"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"expo-constants": ">=17.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"expo-linking": ">=7.0.0",
|
|
67
67
|
"expo-secure-store": ">=14.0.0",
|
|
68
68
|
"expo-web-browser": ">=14.0.0",
|
|
69
|
-
"@better-auth/core": "1.4.0-beta.
|
|
69
|
+
"@better-auth/core": "1.4.0-beta.15"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@better-fetch/fetch": "1.1.18",
|