@better-auth/expo 1.2.3 → 1.2.4-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.cjs CHANGED
@@ -218,3 +218,5 @@ const expoClient = (opts) => {
218
218
 
219
219
  exports.expoClient = expoClient;
220
220
  exports.getCookie = getCookie;
221
+ exports.getSetCookie = getSetCookie;
222
+ exports.parseSetCookieHeader = parseSetCookieHeader;
package/dist/client.d.cts CHANGED
@@ -1,6 +1,17 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { Store } from 'better-auth';
3
3
 
4
+ interface CookieAttributes {
5
+ value: string;
6
+ expires?: Date;
7
+ "max-age"?: number;
8
+ domain?: string;
9
+ path?: string;
10
+ secure?: boolean;
11
+ httpOnly?: boolean;
12
+ sameSite?: "Strict" | "Lax" | "None";
13
+ }
14
+ declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
4
15
  interface ExpoClientOptions {
5
16
  scheme?: string;
6
17
  storage: {
@@ -10,6 +21,7 @@ interface ExpoClientOptions {
10
21
  storagePrefix?: string;
11
22
  disableCache?: boolean;
12
23
  }
24
+ declare function getSetCookie(header: string, prevCookie?: string): string;
13
25
  declare function getCookie(cookie: string): string;
14
26
  declare const expoClient: (opts: ExpoClientOptions) => {
15
27
  id: "expo";
@@ -150,4 +162,4 @@ declare const expoClient: (opts: ExpoClientOptions) => {
150
162
  }[];
151
163
  };
152
164
 
153
- export { expoClient, getCookie };
165
+ export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
package/dist/client.d.mts CHANGED
@@ -1,6 +1,17 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { Store } from 'better-auth';
3
3
 
4
+ interface CookieAttributes {
5
+ value: string;
6
+ expires?: Date;
7
+ "max-age"?: number;
8
+ domain?: string;
9
+ path?: string;
10
+ secure?: boolean;
11
+ httpOnly?: boolean;
12
+ sameSite?: "Strict" | "Lax" | "None";
13
+ }
14
+ declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
4
15
  interface ExpoClientOptions {
5
16
  scheme?: string;
6
17
  storage: {
@@ -10,6 +21,7 @@ interface ExpoClientOptions {
10
21
  storagePrefix?: string;
11
22
  disableCache?: boolean;
12
23
  }
24
+ declare function getSetCookie(header: string, prevCookie?: string): string;
13
25
  declare function getCookie(cookie: string): string;
14
26
  declare const expoClient: (opts: ExpoClientOptions) => {
15
27
  id: "expo";
@@ -150,4 +162,4 @@ declare const expoClient: (opts: ExpoClientOptions) => {
150
162
  }[];
151
163
  };
152
164
 
153
- export { expoClient, getCookie };
165
+ export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
package/dist/client.d.ts CHANGED
@@ -1,6 +1,17 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { Store } from 'better-auth';
3
3
 
4
+ interface CookieAttributes {
5
+ value: string;
6
+ expires?: Date;
7
+ "max-age"?: number;
8
+ domain?: string;
9
+ path?: string;
10
+ secure?: boolean;
11
+ httpOnly?: boolean;
12
+ sameSite?: "Strict" | "Lax" | "None";
13
+ }
14
+ declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
4
15
  interface ExpoClientOptions {
5
16
  scheme?: string;
6
17
  storage: {
@@ -10,6 +21,7 @@ interface ExpoClientOptions {
10
21
  storagePrefix?: string;
11
22
  disableCache?: boolean;
12
23
  }
24
+ declare function getSetCookie(header: string, prevCookie?: string): string;
13
25
  declare function getCookie(cookie: string): string;
14
26
  declare const expoClient: (opts: ExpoClientOptions) => {
15
27
  id: "expo";
@@ -150,4 +162,4 @@ declare const expoClient: (opts: ExpoClientOptions) => {
150
162
  }[];
151
163
  };
152
164
 
153
- export { expoClient, getCookie };
165
+ export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
package/dist/client.mjs CHANGED
@@ -196,4 +196,4 @@ const expoClient = (opts) => {
196
196
  };
197
197
  };
198
198
 
199
- export { expoClient, getCookie };
199
+ export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/expo",
3
- "version": "1.2.3",
3
+ "version": "1.2.4-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -39,10 +39,10 @@
39
39
  "expo-web-browser": "~13.0.3",
40
40
  "unbuild": "^3.5.0",
41
41
  "vitest": "^1.6.0",
42
- "better-auth": "1.2.3"
42
+ "better-auth": "1.2.4-beta.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "better-auth": "1.2.3"
45
+ "better-auth": "1.2.4-beta.2"
46
46
  },
47
47
  "dependencies": {
48
48
  "better-call": "^1.0.3",