@better-auth/electron 1.6.22 → 1.6.24
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-hpd3q6M8.d.mts → client-Dfn6XsLf.d.mts} +26 -41
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +40 -3
- package/dist/index.d.mts +34 -38
- package/dist/index.mjs +8 -6
- package/dist/preload.d.mts +4 -7167
- package/dist/proxy.d.mts +1 -2
- package/dist/proxy.mjs +14 -3
- package/dist/storage.d.mts +1 -2
- package/dist/{version-CD3Z0v2C.mjs → version-DsNmK8I4.mjs} +1 -1
- package/package.json +7 -7
- /package/dist/{utils-DxDKRT6e.mjs → utils-C5XBRvIU.mjs} +0 -0
package/dist/proxy.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { l as ElectronProxyClientOptions } from "./client-
|
|
1
|
+
import { l as ElectronProxyClientOptions } from "./client-Dfn6XsLf.mjs";
|
|
2
2
|
import { electron } from "./index.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/proxy.d.ts
|
|
5
4
|
declare const electronProxyClient: (options: ElectronProxyClientOptions) => {
|
|
6
5
|
id: "electron-proxy";
|
package/dist/proxy.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
2
|
-
import { r as parseProtocolScheme } from "./utils-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-DsNmK8I4.mjs";
|
|
2
|
+
import { r as parseProtocolScheme } from "./utils-C5XBRvIU.mjs";
|
|
3
3
|
import { parseCookies } from "better-auth/cookies";
|
|
4
4
|
//#region src/proxy.ts
|
|
5
5
|
const electronProxyClient = (options) => {
|
|
@@ -20,7 +20,18 @@ const electronProxyClient = (options) => {
|
|
|
20
20
|
return parseCookies(document.cookie).get(redirectCookieName) ?? null;
|
|
21
21
|
};
|
|
22
22
|
return {
|
|
23
|
-
electron: {
|
|
23
|
+
electron: {
|
|
24
|
+
/**
|
|
25
|
+
* Gets the current authorization code from the cookie.
|
|
26
|
+
*/
|
|
27
|
+
getAuthorizationCode },
|
|
28
|
+
/**
|
|
29
|
+
* Ensures redirecting to the Electron app.
|
|
30
|
+
*
|
|
31
|
+
* Polls for a cookie set by the server to indicate that an authorization code is available.
|
|
32
|
+
*
|
|
33
|
+
* @returns The interval ID which can be used to clear the polling.
|
|
34
|
+
*/
|
|
24
35
|
ensureElectronRedirect: (cfg) => {
|
|
25
36
|
const timeout = cfg?.timeout || 1e4;
|
|
26
37
|
const interval = cfg?.interval || 100;
|
package/dist/storage.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { d as Storage } from "./client-
|
|
1
|
+
import { d as Storage } from "./client-Dfn6XsLf.mjs";
|
|
2
2
|
import { Options } from "conf";
|
|
3
|
-
|
|
4
3
|
//#region src/storage.d.ts
|
|
5
4
|
declare const storage: (opts?: Options<Record<string, any>> | undefined) => Storage;
|
|
6
5
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/electron",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.24",
|
|
4
4
|
"description": "Better Auth integration for Electron applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/better-sqlite3": "^7.6.13",
|
|
80
80
|
"better-sqlite3": "^12.6.2",
|
|
81
|
-
"electron": "^
|
|
82
|
-
"tsdown": "0.
|
|
83
|
-
"@better-auth/core": "1.6.
|
|
84
|
-
"better-auth": "1.6.
|
|
81
|
+
"electron": "^43.1.1",
|
|
82
|
+
"tsdown": "0.22.7",
|
|
83
|
+
"@better-auth/core": "1.6.24",
|
|
84
|
+
"better-auth": "1.6.24"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@better-auth/utils": "0.4.2",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"better-call": "1.3.7",
|
|
90
90
|
"conf": "^15.0.2",
|
|
91
91
|
"electron": ">=36.0.0",
|
|
92
|
-
"@better-auth/core": "^1.6.
|
|
93
|
-
"better-auth": "^1.6.
|
|
92
|
+
"@better-auth/core": "^1.6.24",
|
|
93
|
+
"better-auth": "^1.6.24"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"electron": {
|
|
File without changes
|