@protobase/client 0.50.1 → 0.51.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.
@@ -2,7 +2,11 @@ import { $strip } from "./node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/s
2
2
  import { ZodAny, ZodBoolean, ZodDefault, ZodEnum, ZodIntersection, ZodObject, ZodOptional, ZodRecord, ZodString } from "./node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/schemas.js";
3
3
  import { ZodCoercedString } from "./node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/coerce.js";
4
4
  //#region src/better-auth-client.d.ts
5
- /** Better Auth's browser client with the plugins `createAuth` turns on: tokens, emailed codes, two-factor authentication and passkeys. */
5
+ /**
6
+ * Better Auth's browser client with the plugins `createAuth` turns on: tokens, emailed codes, two-factor authentication
7
+ * and passkeys. Without its default fetch plugin, which sends the browser to the `url` of any answer with `redirect:
8
+ * true`: the caller goes on itself, as the connect page does, which the OAuth provider sends back to itself to ask.
9
+ */
6
10
  export declare const betterAuthClient: (baseURL: string, basePath: string, fetch: typeof globalThis.fetch) => import("better-auth/client").AuthClient<{
7
11
  baseURL: string;
8
12
  basePath: string;
@@ -2233,6 +2237,7 @@ export declare const betterAuthClient: (baseURL: string, basePath: string, fetch
2233
2237
  RESOLVED_USER_INVALID: import("better-auth").RawError<"RESOLVED_USER_INVALID">;
2234
2238
  };
2235
2239
  })[];
2240
+ disableDefaultFetchPlugins: true;
2236
2241
  fetchOptions: {
2237
2242
  customFetchImpl: typeof globalThis.fetch;
2238
2243
  };
@@ -2,7 +2,11 @@ import { passkeyClient } from "@better-auth/passkey/client";
2
2
  import { createAuthClient } from "better-auth/client";
3
3
  import { emailOTPClient, jwtClient, twoFactorClient } from "better-auth/client/plugins";
4
4
  //#region src/better-auth-client.ts
5
- /** Better Auth's browser client with the plugins `createAuth` turns on: tokens, emailed codes, two-factor authentication and passkeys. */
5
+ /**
6
+ * Better Auth's browser client with the plugins `createAuth` turns on: tokens, emailed codes, two-factor authentication
7
+ * and passkeys. Without its default fetch plugin, which sends the browser to the `url` of any answer with `redirect:
8
+ * true`: the caller goes on itself, as the connect page does, which the OAuth provider sends back to itself to ask.
9
+ */
6
10
  const betterAuthClient = (baseURL, basePath, fetch) => createAuthClient({
7
11
  baseURL,
8
12
  basePath,
@@ -12,6 +16,7 @@ const betterAuthClient = (baseURL, basePath, fetch) => createAuthClient({
12
16
  twoFactorClient(),
13
17
  passkeyClient()
14
18
  ],
19
+ disableDefaultFetchPlugins: true,
15
20
  fetchOptions: { customFetchImpl: fetch }
16
21
  });
17
22
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/client",
3
- "version": "0.50.1",
3
+ "version": "0.51.1",
4
4
  "description": "Typed fetch client for the Protobase REST API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@better-auth/passkey": "^1.7.12",
33
- "@protobase/layout": "0.50.1",
34
- "@protobase/schema": "0.50.1",
33
+ "@protobase/layout": "0.51.1",
34
+ "@protobase/schema": "0.51.1",
35
35
  "@simplewebauthn/browser": "^13.3.0",
36
36
  "better-auth": "^1.7.12"
37
37
  }