@better-auth/electron 1.6.9 → 1.6.10

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BI7AiK6S.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-Bwp02oze.mjs";
2
2
  import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-DxDKRT6e.mjs";
3
3
  import { BetterAuthError } from "@better-auth/core/error";
4
4
  import { base64, base64Url } from "@better-auth/utils/base64";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BI7AiK6S.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-Bwp02oze.mjs";
2
2
  import { createAuthMiddleware } from "@better-auth/core/api";
3
3
  import { APIError, BASE_ERROR_CODES } from "@better-auth/core/error";
4
4
  import { base64Url } from "@better-auth/utils/base64";
@@ -4832,7 +4832,12 @@ interface InternalAdapter<_Options extends BetterAuthOptions = BetterAuthOptions
4832
4832
  updateSession(sessionToken: string, session: Partial<Session> & Record<string, any>): Promise<Session | null>;
4833
4833
  deleteSession(token: string): Promise<void>;
4834
4834
  deleteAccounts(userId: string): Promise<void>;
4835
- deleteAccount(accountId: string): Promise<void>;
4835
+ /**
4836
+ * Delete an account by its primary key.
4837
+ *
4838
+ * @param id - The account row's primary key (the `id` column, not the `accountId` column).
4839
+ */
4840
+ deleteAccount(id: string): Promise<void>;
4836
4841
  deleteSessions(userIdOrSessionTokens: string | string[]): Promise<void>;
4837
4842
  findOAuthUser(email: string, accountId: string, providerId: string): Promise<{
4838
4843
  user: User;
@@ -4859,6 +4864,7 @@ interface InternalAdapter<_Options extends BetterAuthOptions = BetterAuthOptions
4859
4864
  findVerificationValue(identifier: string): Promise<Verification | null>;
4860
4865
  deleteVerificationByIdentifier(identifier: string): Promise<void>;
4861
4866
  updateVerificationByIdentifier(identifier: string, data: Partial<Verification>): Promise<Verification>;
4867
+ refreshUserSessions(user: User): Promise<void>;
4862
4868
  }
4863
4869
  type CreateCookieGetterFn = (cookieName: string, overrideAttributes?: Partial<CookieOptions> | undefined) => BetterAuthCookie;
4864
4870
  type CheckPasswordFn<Options extends BetterAuthOptions = BetterAuthOptions> = (userId: string, ctx: GenericEndpointContext<Options>) => Promise<boolean>;
package/dist/proxy.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BI7AiK6S.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-Bwp02oze.mjs";
2
2
  import { r as parseProtocolScheme } from "./utils-DxDKRT6e.mjs";
3
3
  import { parseCookies } from "better-auth/cookies";
4
4
  //#region src/proxy.ts
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.6.9";
3
+ const PACKAGE_VERSION = "1.6.10";
4
4
  //#endregion
5
5
  export { PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/electron",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "Better Auth integration for Electron applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -80,8 +80,8 @@
80
80
  "better-sqlite3": "^12.6.2",
81
81
  "electron": "^41.2.2",
82
82
  "tsdown": "0.21.1",
83
- "@better-auth/core": "1.6.9",
84
- "better-auth": "1.6.9"
83
+ "@better-auth/core": "1.6.10",
84
+ "better-auth": "1.6.10"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@better-auth/utils": "0.4.0",
@@ -89,8 +89,8 @@
89
89
  "better-call": "1.3.5",
90
90
  "conf": "^15.0.2",
91
91
  "electron": ">=36.0.0",
92
- "@better-auth/core": "^1.6.9",
93
- "better-auth": "^1.6.9"
92
+ "@better-auth/core": "^1.6.10",
93
+ "better-auth": "^1.6.10"
94
94
  },
95
95
  "peerDependenciesMeta": {
96
96
  "electron": {