@better-auth/expo 1.2.4 → 1.2.5-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 +1 -4
- package/dist/client.d.cts +2 -54
- package/dist/client.d.mts +2 -54
- package/dist/client.d.ts +2 -54
- package/dist/client.mjs +1 -4
- package/package.json +4 -3
package/dist/client.cjs
CHANGED
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
|
+
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
2
3
|
import { Store } from 'better-auth';
|
|
3
4
|
|
|
4
5
|
interface CookieAttributes {
|
|
@@ -104,60 +105,7 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
104
105
|
disableValidation?: boolean | undefined;
|
|
105
106
|
} | undefined): Promise<{
|
|
106
107
|
url: string;
|
|
107
|
-
options:
|
|
108
|
-
cache?: RequestCache | undefined;
|
|
109
|
-
credentials?: RequestCredentials | undefined;
|
|
110
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
111
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
112
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
113
|
-
authorization: "Bearer" | "Basic";
|
|
114
|
-
})) | undefined;
|
|
115
|
-
integrity?: string | undefined;
|
|
116
|
-
keepalive?: boolean | undefined;
|
|
117
|
-
method?: string | undefined;
|
|
118
|
-
mode?: RequestMode | undefined;
|
|
119
|
-
priority?: RequestPriority | undefined;
|
|
120
|
-
redirect?: RequestRedirect | undefined;
|
|
121
|
-
referrer?: string | undefined;
|
|
122
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
123
|
-
signal?: (AbortSignal | null) | undefined;
|
|
124
|
-
window?: null | undefined;
|
|
125
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
126
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
127
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
128
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
129
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
130
|
-
hookOptions?: {
|
|
131
|
-
cloneResponse?: boolean;
|
|
132
|
-
} | undefined;
|
|
133
|
-
timeout?: number | undefined;
|
|
134
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
135
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
136
|
-
baseURL?: string | undefined;
|
|
137
|
-
throw?: boolean | undefined;
|
|
138
|
-
auth?: ({
|
|
139
|
-
type: "Bearer";
|
|
140
|
-
token: string | (() => string | undefined) | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
type: "Basic";
|
|
143
|
-
username: string | (() => string | undefined) | undefined;
|
|
144
|
-
password: string | (() => string | undefined) | undefined;
|
|
145
|
-
} | {
|
|
146
|
-
type: "Custom";
|
|
147
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
148
|
-
value: string | (() => string | undefined) | undefined;
|
|
149
|
-
}) | undefined;
|
|
150
|
-
body?: any;
|
|
151
|
-
query?: any;
|
|
152
|
-
params?: any;
|
|
153
|
-
duplex?: "full" | "half" | undefined;
|
|
154
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
155
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
156
|
-
retryAttempt?: number | undefined;
|
|
157
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
158
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
159
|
-
disableValidation?: boolean | undefined;
|
|
160
|
-
} | undefined;
|
|
108
|
+
options: BetterFetchOption;
|
|
161
109
|
}>;
|
|
162
110
|
}[];
|
|
163
111
|
};
|
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
|
+
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
2
3
|
import { Store } from 'better-auth';
|
|
3
4
|
|
|
4
5
|
interface CookieAttributes {
|
|
@@ -104,60 +105,7 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
104
105
|
disableValidation?: boolean | undefined;
|
|
105
106
|
} | undefined): Promise<{
|
|
106
107
|
url: string;
|
|
107
|
-
options:
|
|
108
|
-
cache?: RequestCache | undefined;
|
|
109
|
-
credentials?: RequestCredentials | undefined;
|
|
110
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
111
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
112
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
113
|
-
authorization: "Bearer" | "Basic";
|
|
114
|
-
})) | undefined;
|
|
115
|
-
integrity?: string | undefined;
|
|
116
|
-
keepalive?: boolean | undefined;
|
|
117
|
-
method?: string | undefined;
|
|
118
|
-
mode?: RequestMode | undefined;
|
|
119
|
-
priority?: RequestPriority | undefined;
|
|
120
|
-
redirect?: RequestRedirect | undefined;
|
|
121
|
-
referrer?: string | undefined;
|
|
122
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
123
|
-
signal?: (AbortSignal | null) | undefined;
|
|
124
|
-
window?: null | undefined;
|
|
125
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
126
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
127
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
128
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
129
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
130
|
-
hookOptions?: {
|
|
131
|
-
cloneResponse?: boolean;
|
|
132
|
-
} | undefined;
|
|
133
|
-
timeout?: number | undefined;
|
|
134
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
135
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
136
|
-
baseURL?: string | undefined;
|
|
137
|
-
throw?: boolean | undefined;
|
|
138
|
-
auth?: ({
|
|
139
|
-
type: "Bearer";
|
|
140
|
-
token: string | (() => string | undefined) | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
type: "Basic";
|
|
143
|
-
username: string | (() => string | undefined) | undefined;
|
|
144
|
-
password: string | (() => string | undefined) | undefined;
|
|
145
|
-
} | {
|
|
146
|
-
type: "Custom";
|
|
147
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
148
|
-
value: string | (() => string | undefined) | undefined;
|
|
149
|
-
}) | undefined;
|
|
150
|
-
body?: any;
|
|
151
|
-
query?: any;
|
|
152
|
-
params?: any;
|
|
153
|
-
duplex?: "full" | "half" | undefined;
|
|
154
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
155
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
156
|
-
retryAttempt?: number | undefined;
|
|
157
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
158
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
159
|
-
disableValidation?: boolean | undefined;
|
|
160
|
-
} | undefined;
|
|
108
|
+
options: BetterFetchOption;
|
|
161
109
|
}>;
|
|
162
110
|
}[];
|
|
163
111
|
};
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
|
+
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
2
3
|
import { Store } from 'better-auth';
|
|
3
4
|
|
|
4
5
|
interface CookieAttributes {
|
|
@@ -104,60 +105,7 @@ declare const expoClient: (opts: ExpoClientOptions) => {
|
|
|
104
105
|
disableValidation?: boolean | undefined;
|
|
105
106
|
} | undefined): Promise<{
|
|
106
107
|
url: string;
|
|
107
|
-
options:
|
|
108
|
-
cache?: RequestCache | undefined;
|
|
109
|
-
credentials?: RequestCredentials | undefined;
|
|
110
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
111
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
112
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
113
|
-
authorization: "Bearer" | "Basic";
|
|
114
|
-
})) | undefined;
|
|
115
|
-
integrity?: string | undefined;
|
|
116
|
-
keepalive?: boolean | undefined;
|
|
117
|
-
method?: string | undefined;
|
|
118
|
-
mode?: RequestMode | undefined;
|
|
119
|
-
priority?: RequestPriority | undefined;
|
|
120
|
-
redirect?: RequestRedirect | undefined;
|
|
121
|
-
referrer?: string | undefined;
|
|
122
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
123
|
-
signal?: (AbortSignal | null) | undefined;
|
|
124
|
-
window?: null | undefined;
|
|
125
|
-
onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
|
|
126
|
-
onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
|
|
127
|
-
onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
128
|
-
onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
|
|
129
|
-
onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
|
|
130
|
-
hookOptions?: {
|
|
131
|
-
cloneResponse?: boolean;
|
|
132
|
-
} | undefined;
|
|
133
|
-
timeout?: number | undefined;
|
|
134
|
-
customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
|
|
135
|
-
plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
|
|
136
|
-
baseURL?: string | undefined;
|
|
137
|
-
throw?: boolean | undefined;
|
|
138
|
-
auth?: ({
|
|
139
|
-
type: "Bearer";
|
|
140
|
-
token: string | (() => string | undefined) | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
type: "Basic";
|
|
143
|
-
username: string | (() => string | undefined) | undefined;
|
|
144
|
-
password: string | (() => string | undefined) | undefined;
|
|
145
|
-
} | {
|
|
146
|
-
type: "Custom";
|
|
147
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
148
|
-
value: string | (() => string | undefined) | undefined;
|
|
149
|
-
}) | undefined;
|
|
150
|
-
body?: any;
|
|
151
|
-
query?: any;
|
|
152
|
-
params?: any;
|
|
153
|
-
duplex?: "full" | "half" | undefined;
|
|
154
|
-
jsonParser?: ((text: string) => Promise<any> | any) | undefined;
|
|
155
|
-
retry?: _better_fetch_fetch.RetryOptions | undefined;
|
|
156
|
-
retryAttempt?: number | undefined;
|
|
157
|
-
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
158
|
-
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
159
|
-
disableValidation?: boolean | undefined;
|
|
160
|
-
} | undefined;
|
|
108
|
+
options: BetterFetchOption;
|
|
161
109
|
}>;
|
|
162
110
|
}[];
|
|
163
111
|
};
|
package/dist/client.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/expo",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,13 +39,14 @@
|
|
|
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.
|
|
42
|
+
"better-auth": "1.2.5-beta.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"better-auth": "1.2.
|
|
45
|
+
"better-auth": "1.2.5-beta.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"better-call": "^1.0.3",
|
|
49
|
+
"@better-fetch/fetch": "^1.1.15",
|
|
49
50
|
"zod": "^3.23.8"
|
|
50
51
|
},
|
|
51
52
|
"files": [
|