@bigio/better-auth-electron 1.0.3 → 1.0.5

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.
@@ -1 +1 @@
1
- {"inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytes":2349,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytes":4951,"imports":[{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js","kind":"require-call","original":"./packageJson"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytes":4692,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js","kind":"require-call","original":"../node/NodeExternalApi"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytes":2054,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytes":2459,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js","kind":"require-call","original":"../renderer/electron-log-preload"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytes":854,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytes":613,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytes":5471,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js","kind":"require-call","original":"./scope"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js","kind":"require-call","original":"./Buffering"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytes":3311,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytes":5836,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytes":372,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytes":4094,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"./transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytes":2906,"imports":[{"path":"util","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytes":1520,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytes":2517,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytes":3299,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytes":232,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytes":1789,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js","kind":"require-call","original":"./NullFile"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytes":4417,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js","kind":"require-call","original":"./FileRegistry"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytes":808,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytes":2114,"imports":[{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytes":1205,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js","kind":"require-call","original":"../core/Logger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js","kind":"require-call","original":"./ErrorHandler"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js","kind":"require-call","original":"./EventLogger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js","kind":"require-call","original":"./transports/console"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js","kind":"require-call","original":"./transports/file"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js","kind":"require-call","original":"./transports/ipc"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js","kind":"require-call","original":"./transports/remote"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytes":1204,"imports":[{"path":"electron","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js","kind":"require-call","original":"./ElectronExternalApi"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js","kind":"require-call","original":"./initialize"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js","kind":"require-call","original":"../node/createDefaultLogger"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytes":75,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js","kind":"require-call","original":"./src/main"}],"format":"cjs"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js":{"bytes":582,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytes":433,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"../task/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytes":2191,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytes":4172,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js":{"bytes":1429,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js":{"bytes":1413,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js":{"bytes":1034,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js":{"bytes":446,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js":{"bytes":63,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytes":389,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js":{"bytes":536,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js":{"bytes":846,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"../map/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytes":697,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"./atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"./clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js","kind":"import-statement","original":"./computed/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js","kind":"import-statement","original":"./deep-map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js","kind":"import-statement","original":"./effect/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js","kind":"import-statement","original":"./keep-mount/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"./lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js","kind":"import-statement","original":"./listen-keys/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js","kind":"import-statement","original":"./map-creator/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"./map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"./task/index.js"}],"format":"esm"},"src/options/electron-plugin-options.ts":{"bytes":10428,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js":{"bytes":1391,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytes":5461,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytes":5642,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytes":494,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js","kind":"import-statement","original":"./hex.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js","kind":"import-statement","original":"./base32.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js","kind":"import-statement","original":"./base64.js"}],"format":"esm"},"src/utils/electron-plugin-env.ts":{"bytes":4562,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"esm"},"src/utils/electron-plugin-utils.ts":{"bytes":24968,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js","kind":"import-statement","original":"@oslojs/encoding"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"./electron-plugin-env"}],"format":"esm"},"src/main/electron-main-plugin.ts":{"bytes":19778,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js","kind":"import-statement","original":"electron-log/main"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/renderer/electron-renderer-plugin.ts":{"bytes":18063,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"../utils/electron-plugin-env"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/server/electron-server-plugin.ts":{"bytes":21106,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytes":715,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/web/electron-web-clientHelper.ts":{"bytes":262,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"}],"format":"esm"},"src/web/electron-web-plugin.ts":{"bytes":11169,"imports":[{"path":"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js","kind":"import-statement","original":"@nanostores/react"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"},{"path":"src/web/electron-web-clientHelper.ts","kind":"import-statement","original":"./electron-web-clientHelper"}],"format":"esm"}},"outputs":{"dist/main.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":203266},"dist/main.js":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"util","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["mainInjection"],"entryPoint":"src/main/electron-main-plugin.ts","inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytesInOutput":2268},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytesInOutput":5461},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytesInOutput":5267},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytesInOutput":1999},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytesInOutput":2887},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytesInOutput":1150},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytesInOutput":875},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytesInOutput":5977},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytesInOutput":3837},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytesInOutput":6650},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytesInOutput":596},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytesInOutput":4443},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytesInOutput":3014},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytesInOutput":1894},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytesInOutput":2863},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytesInOutput":3950},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytesInOutput":460},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytesInOutput":2214},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytesInOutput":4786},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytesInOutput":898},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytesInOutput":2472},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytesInOutput":1439},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytesInOutput":1485},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytesInOutput":212},"src/main/electron-main-plugin.ts":{"bytesInOutput":15365},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/options/electron-plugin-options.ts":{"bytesInOutput":1741},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10941},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":104806},"dist/renderer.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":91822},"dist/renderer.js":{"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["electronRendererPlugin"],"entryPoint":"src/renderer/electron-renderer-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/renderer/electron-renderer-plugin.ts":{"bytesInOutput":11238},"src/options/electron-plugin-options.ts":{"bytesInOutput":1255},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1461},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10299}},"bytes":29142},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":99509},"dist/server.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronServerPlugin"],"entryPoint":"src/server/electron-server-plugin.ts","inputs":{"src/server/electron-server-plugin.ts":{"bytesInOutput":14777},"src/options/electron-plugin-options.ts":{"bytesInOutput":813},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":3472},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":17435},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":38873},"dist/web.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":89893},"dist/web.js":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronWebHandoffPlugin","setLazyClient"],"entryPoint":"src/web/electron-web-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytesInOutput":2109},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytesInOutput":232},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytesInOutput":667},"src/options/electron-plugin-options.ts":{"bytesInOutput":1128},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":456},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":9834},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104},"src/web/electron-web-clientHelper.ts":{"bytesInOutput":25},"src/web/electron-web-plugin.ts":{"bytesInOutput":6617}},"bytes":26004},"dist/options.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12099},"dist/options.js":{"imports":[],"exports":["defatultWebOptions","defaultButtonOptions","defaultMainPluginOptions","defaultRendererPluginOptions","defaultServerPluginOptions"],"entryPoint":"src/options/electron-plugin-options.ts","inputs":{"src/options/electron-plugin-options.ts":{"bytesInOutput":2612}},"bytes":2801}}}
1
+ {"inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytes":2349,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytes":4951,"imports":[{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js","kind":"require-call","original":"./packageJson"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytes":4692,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js","kind":"require-call","original":"../node/NodeExternalApi"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytes":2054,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytes":2459,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js","kind":"require-call","original":"../renderer/electron-log-preload"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytes":854,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytes":613,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytes":5471,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js","kind":"require-call","original":"./scope"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js","kind":"require-call","original":"./Buffering"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytes":3311,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytes":5836,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytes":372,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytes":4094,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"./transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytes":2906,"imports":[{"path":"util","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytes":1520,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytes":2517,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytes":3299,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytes":232,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytes":1789,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js","kind":"require-call","original":"./NullFile"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytes":4417,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js","kind":"require-call","original":"./FileRegistry"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytes":808,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytes":2114,"imports":[{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytes":1205,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js","kind":"require-call","original":"../core/Logger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js","kind":"require-call","original":"./ErrorHandler"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js","kind":"require-call","original":"./EventLogger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js","kind":"require-call","original":"./transports/console"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js","kind":"require-call","original":"./transports/file"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js","kind":"require-call","original":"./transports/ipc"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js","kind":"require-call","original":"./transports/remote"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytes":1204,"imports":[{"path":"electron","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js","kind":"require-call","original":"./ElectronExternalApi"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js","kind":"require-call","original":"./initialize"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js","kind":"require-call","original":"../node/createDefaultLogger"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytes":75,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js","kind":"require-call","original":"./src/main"}],"format":"cjs"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js":{"bytes":582,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytes":433,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"../task/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytes":2191,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytes":4172,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js":{"bytes":1429,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js":{"bytes":1413,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js":{"bytes":1034,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js":{"bytes":446,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js":{"bytes":63,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytes":389,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js":{"bytes":536,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js":{"bytes":846,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"../map/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytes":697,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"./atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"./clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js","kind":"import-statement","original":"./computed/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js","kind":"import-statement","original":"./deep-map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js","kind":"import-statement","original":"./effect/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js","kind":"import-statement","original":"./keep-mount/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"./lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js","kind":"import-statement","original":"./listen-keys/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js","kind":"import-statement","original":"./map-creator/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"./map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"./task/index.js"}],"format":"esm"},"src/options/electron-plugin-options.ts":{"bytes":11279,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js":{"bytes":1391,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytes":5461,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytes":5642,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytes":494,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js","kind":"import-statement","original":"./hex.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js","kind":"import-statement","original":"./base32.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js","kind":"import-statement","original":"./base64.js"}],"format":"esm"},"src/utils/electron-plugin-env.ts":{"bytes":4562,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"esm"},"src/utils/electron-plugin-utils.ts":{"bytes":26514,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js","kind":"import-statement","original":"@oslojs/encoding"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"./electron-plugin-env"}],"format":"esm"},"src/main/electron-main-plugin.ts":{"bytes":18961,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js","kind":"import-statement","original":"electron-log/main"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/renderer/electron-renderer-plugin.ts":{"bytes":25837,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"../utils/electron-plugin-env"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/server/electron-server-plugin.ts":{"bytes":21774,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytes":715,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/web/electron-web-clientHelper.ts":{"bytes":262,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"}],"format":"esm"},"src/web/electron-web-plugin.ts":{"bytes":14581,"imports":[{"path":"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js","kind":"import-statement","original":"@nanostores/react"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"},{"path":"src/web/electron-web-clientHelper.ts","kind":"import-statement","original":"./electron-web-clientHelper"}],"format":"esm"}},"outputs":{"dist/main.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":204757},"dist/main.js":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"util","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["mainInjection"],"entryPoint":"src/main/electron-main-plugin.ts","inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytesInOutput":2268},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytesInOutput":5461},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytesInOutput":5267},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytesInOutput":1999},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytesInOutput":2887},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytesInOutput":1150},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytesInOutput":875},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytesInOutput":5977},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytesInOutput":3837},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytesInOutput":6650},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytesInOutput":596},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytesInOutput":4443},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytesInOutput":3014},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytesInOutput":1894},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytesInOutput":2863},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytesInOutput":3950},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytesInOutput":460},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytesInOutput":2214},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytesInOutput":4786},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytesInOutput":898},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytesInOutput":2472},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytesInOutput":1439},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytesInOutput":1485},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytesInOutput":212},"src/main/electron-main-plugin.ts":{"bytesInOutput":14760},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/options/electron-plugin-options.ts":{"bytesInOutput":1716},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":11222},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":104457},"dist/renderer.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":105314},"dist/renderer.js":{"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["electronRendererPlugin"],"entryPoint":"src/renderer/electron-renderer-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/renderer/electron-renderer-plugin.ts":{"bytesInOutput":15484},"src/options/electron-plugin-options.ts":{"bytesInOutput":1656},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1461},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":11501}},"bytes":34991},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":103164},"dist/server.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronServerPlugin"],"entryPoint":"src/server/electron-server-plugin.ts","inputs":{"src/server/electron-server-plugin.ts":{"bytesInOutput":15198},"src/options/electron-plugin-options.ts":{"bytesInOutput":859},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":3472},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":17789},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":39694},"dist/web.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":94541},"dist/web.js":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronWebHandoffPlugin","setLazyClient"],"entryPoint":"src/web/electron-web-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytesInOutput":232},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytesInOutput":667},"src/options/electron-plugin-options.ts":{"bytesInOutput":1410},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":2542},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":11269},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104},"src/web/electron-web-clientHelper.ts":{"bytesInOutput":25},"src/web/electron-web-plugin.ts":{"bytesInOutput":9338}},"bytes":30336},"dist/options.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":13184},"dist/options.js":{"imports":[],"exports":["defaultButtonOptions","defaultMainPluginOptions","defaultRendererPluginOptions","defaultServerPluginOptions","defaultWebOptions"],"entryPoint":"src/options/electron-plugin-options.ts","inputs":{"src/options/electron-plugin-options.ts":{"bytesInOutput":3178}},"bytes":3366}}}
package/dist/options.d.ts CHANGED
@@ -47,10 +47,19 @@ type ElectronServerPluginOptions = {
47
47
  SCHEME_NAME_IN_URL?: string;
48
48
  PROVIDER_NAME_IN_URL?: string;
49
49
  CHALLENGE_NAME_IN_URL?: string;
50
+ AUTH_STATUS_NAME_IN_URL?: string;
50
51
  TICKET_TTL_SEC?: number;
51
52
  ELECTRON_SESSION_DURATION?: number;
52
53
  };
53
54
  type ElectronRendererPluginOptions = {
55
+ FRONTEND_URL?: string;
56
+ PROVIDER_NAME_IN_URL?: string;
57
+ SCOPES_NAME_IN_URL?: string;
58
+ LOGINHINT_NAME_IN_URL?: string;
59
+ ADDITIONAL_DATA_NAME_IN_URL?: string;
60
+ PROVIDERS?: string[];
61
+ REQUEST_SIGN_UP_NAME_IN_URL?: string;
62
+ AUTH_STATUS_NAME_IN_URL?: string;
54
63
  /**
55
64
  * The custom protocol scheme used for deep linking authentication.
56
65
  * @remarks
@@ -65,10 +74,10 @@ type ElectronRendererPluginOptions = {
65
74
  ELECTRON_APP_HOST?: string;
66
75
  TICKET_NAME_IN_URL?: string;
67
76
  onDeepLinkFailedFn?: (error: unknown) => Promise<void>;
68
- onDeepLinkSuccessFn?: (data: {
77
+ onDeepLinkSuccessFn?: <T>(data: {
69
78
  session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>;
70
79
  user: User;
71
- }) => Promise<void>;
80
+ }) => Promise<T | unknown>;
72
81
  lazySignalUIReadyForFn?: boolean;
73
82
  /**
74
83
  * The specific action path or host used to identify the auth callback.
@@ -105,7 +114,6 @@ type ElectronMainPluginOptions = {
105
114
  */
106
115
  ELECTRON_SCHEME: string;
107
116
  BETTER_AUTH_BASEURL: string;
108
- PROVIDERS: string[];
109
117
  FRONTEND_URL: string;
110
118
  ELECTRON_APP_NAME: string;
111
119
  CONTENT_SECURITY_POLICY?: string;
@@ -120,7 +128,6 @@ type ElectronMainPluginOptions = {
120
128
  ELECTRON_VERIFIER_LENGTH?: number;
121
129
  CHALLENGE_NAME_IN_URL?: string;
122
130
  SCHEME_NAME_IN_URL?: string;
123
- PROVIDER_NAME_IN_URL?: string;
124
131
  CALLBACK_PATHNAME_IN_URL?: string;
125
132
  WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string;
126
133
  ELECTRON_APP_HOST?: string;
@@ -183,7 +190,7 @@ type ElectronButtonOptions = {
183
190
  FRONTEND_URL: string;
184
191
  PROVIDER_NAME_IN_URL: string;
185
192
  };
186
- type ElectronWebOptions = typeof defatultWebOptions;
193
+ type ElectronWebOptions = typeof defaultWebOptions;
187
194
  declare const defaultServerPluginOptions: {
188
195
  ELECTRON_SCHEME: string;
189
196
  ELECTRON_APP_HOST: string;
@@ -199,6 +206,7 @@ declare const defaultServerPluginOptions: {
199
206
  SCHEME_NAME_IN_URL: string;
200
207
  PROVIDER_NAME_IN_URL: string;
201
208
  CHALLENGE_NAME_IN_URL: string;
209
+ AUTH_STATUS_NAME_IN_URL: string;
202
210
  TICKET_TTL_SEC: number;
203
211
  ELECTRON_SESSION_DURATION: number;
204
212
  };
@@ -206,6 +214,7 @@ declare const defaultRendererPluginOptions: {
206
214
  ELECTRON_SCHEME: string;
207
215
  ELECTRON_APP_HOST: string;
208
216
  BACKEND_EXCHANGE_URL: string;
217
+ PROVIDERS: string[];
209
218
  refetchSessionOnFocus: true;
210
219
  ELECTRON_CALLBACK_HOST_PATH: string;
211
220
  DEEPLINK_EVENT_NAME: string;
@@ -213,13 +222,19 @@ declare const defaultRendererPluginOptions: {
213
222
  CHALLENGE_NAME_IN_URL: string;
214
223
  TICKET_NAME_IN_URL: string;
215
224
  lazySignalUIReadyForFn: false;
225
+ FRONTEND_URL: string;
226
+ PROVIDER_NAME_IN_URL: string;
227
+ SCOPES_NAME_IN_URL: string;
228
+ LOGINHINT_NAME_IN_URL: string;
229
+ ADDITIONAL_DATA_NAME_IN_URL: string;
230
+ REQUEST_SIGN_UP_NAME_IN_URL: string;
231
+ AUTH_STATUS_NAME_IN_URL: string;
216
232
  };
217
233
  declare const defaultMainPluginOptions: {
218
234
  debugMode: false;
219
235
  isOAuth: true;
220
236
  BETTER_AUTH_BASEURL: string;
221
237
  ELECTRON_APP_NAME: string;
222
- PROVIDERS: string[];
223
238
  ELECTRON_APP_HOST: string;
224
239
  ELECTRON_SCHEME: string;
225
240
  ELECTRON_RENDERER_PATH: string;
@@ -231,7 +246,6 @@ declare const defaultMainPluginOptions: {
231
246
  FRONTEND_URL: string;
232
247
  WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: string;
233
248
  SCHEME_NAME_IN_URL: string;
234
- PROVIDER_NAME_IN_URL: string;
235
249
  CHALLENGE_NAME_IN_URL: string;
236
250
  CALLBACK_PATHNAME_IN_URL: string;
237
251
  OLD_SCHOOL_ONBEFORE_WAY: false;
@@ -242,14 +256,19 @@ declare const defaultButtonOptions: {
242
256
  FRONTEND_URL: string;
243
257
  PROVIDER_NAME_IN_URL: string;
244
258
  };
245
- declare const defatultWebOptions: {
259
+ declare const defaultWebOptions: {
246
260
  readonly ELECTRON_SCHEME: "bigio";
247
261
  readonly SCHEME_NAME_IN_URL: "scheme";
248
262
  readonly PROVIDERS: readonly ["github", "google"];
249
263
  readonly PROVIDER_NAME_IN_URL: "provider";
250
- readonly CHALLENGE_NAME_IN_URL: "electron_challenge";
264
+ readonly CHALLENGE_NAME_IN_URL: "electron-challenge";
251
265
  readonly WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: "electron-handoff";
252
266
  readonly BACKEND_FAST_TICKET_URL: "electron/fastTicket";
267
+ readonly SCOPES_NAME_IN_URL: "electron-scopes";
268
+ readonly LOGINHINT_NAME_IN_URL: "electron-loginhint";
269
+ readonly ADDITIONAL_DATA_NAME_IN_URL: "electron-addata";
270
+ readonly REQUEST_SIGN_UP_NAME_IN_URL: "electron-reqsignup";
271
+ readonly AUTH_STATUS_NAME_IN_URL: "electron-status";
253
272
  };
254
273
 
255
- export { type ElectronButtonOptions, type ElectronMainPluginOptions, type ElectronRendererPluginOptions, type ElectronServerPluginOptions, type ElectronWebOptions, defatultWebOptions, defaultButtonOptions, defaultMainPluginOptions, defaultRendererPluginOptions, defaultServerPluginOptions };
274
+ export { type ElectronButtonOptions, type ElectronMainPluginOptions, type ElectronRendererPluginOptions, type ElectronServerPluginOptions, type ElectronWebOptions, defaultButtonOptions, defaultMainPluginOptions, defaultRendererPluginOptions, defaultServerPluginOptions, defaultWebOptions };
package/dist/options.js CHANGED
@@ -14,7 +14,8 @@ var defaultServerPluginOptions = {
14
14
  TICKET_NAME_IN_URL: "ticket",
15
15
  SCHEME_NAME_IN_URL: "scheme",
16
16
  PROVIDER_NAME_IN_URL: "provider",
17
- CHALLENGE_NAME_IN_URL: "electron_challenge",
17
+ CHALLENGE_NAME_IN_URL: "electron-challenge",
18
+ AUTH_STATUS_NAME_IN_URL: "electron-status",
18
19
  TICKET_TTL_SEC: 60 * 5,
19
20
  ELECTRON_SESSION_DURATION: 7 * 24 * 60 * 60 * 1e3
20
21
  // customPreactJS: customPreactJS,
@@ -23,20 +24,27 @@ var defaultRendererPluginOptions = {
23
24
  ELECTRON_SCHEME: "bigio",
24
25
  ELECTRON_APP_HOST: "app-renderer",
25
26
  BACKEND_EXCHANGE_URL: "electron/exchange",
27
+ PROVIDERS: ["github", "google"],
26
28
  refetchSessionOnFocus: true,
27
29
  ELECTRON_CALLBACK_HOST_PATH: "better-auth-callback",
28
30
  DEEPLINK_EVENT_NAME: "deep-link-received",
29
31
  APP_MOUNTED_EVENT_NAME: "renderer-app-mounted",
30
- CHALLENGE_NAME_IN_URL: "electron_challenge",
32
+ CHALLENGE_NAME_IN_URL: "electron-challenge",
31
33
  TICKET_NAME_IN_URL: "ticket",
32
- lazySignalUIReadyForFn: false
34
+ lazySignalUIReadyForFn: false,
35
+ FRONTEND_URL: "http://localhost:3001/oauth",
36
+ PROVIDER_NAME_IN_URL: "provider",
37
+ SCOPES_NAME_IN_URL: "electron-scopes",
38
+ LOGINHINT_NAME_IN_URL: "electron-loginhint",
39
+ ADDITIONAL_DATA_NAME_IN_URL: "electron-addata",
40
+ REQUEST_SIGN_UP_NAME_IN_URL: "electron-reqsignup",
41
+ AUTH_STATUS_NAME_IN_URL: "electron-status"
33
42
  };
34
43
  var defaultMainPluginOptions = {
35
44
  debugMode: false,
36
45
  isOAuth: true,
37
46
  BETTER_AUTH_BASEURL: "http://localhost:3002",
38
47
  ELECTRON_APP_NAME: "bigio-electron-demo",
39
- PROVIDERS: ["github", "google"],
40
48
  ELECTRON_APP_HOST: "app-renderer",
41
49
  ELECTRON_SCHEME: "bigio",
42
50
  ELECTRON_RENDERER_PATH: "out/renderer",
@@ -45,11 +53,10 @@ var defaultMainPluginOptions = {
45
53
  CLEAR_COOKIES_EVENT_NAME: "clear-Cookies",
46
54
  GET_COOKIES_EVENT_NAME: "get-Cookies",
47
55
  ELECTRON_VERIFIER_LENGTH: 32,
48
- FRONTEND_URL: "http://localhost:3002/oauth",
56
+ FRONTEND_URL: "http://localhost:3001/oauth",
49
57
  WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: "electron-handoff",
50
58
  SCHEME_NAME_IN_URL: "scheme",
51
- PROVIDER_NAME_IN_URL: "provider",
52
- CHALLENGE_NAME_IN_URL: "electron_challenge",
59
+ CHALLENGE_NAME_IN_URL: "electron-challenge",
53
60
  CALLBACK_PATHNAME_IN_URL: "callbackpath",
54
61
  OLD_SCHOOL_ONBEFORE_WAY: false,
55
62
  ELECTRON_CALLBACK_HOST_PATH: "better-auth-callback",
@@ -59,16 +66,21 @@ var defaultButtonOptions = {
59
66
  FRONTEND_URL: "http://localhost:3001/oauth",
60
67
  PROVIDER_NAME_IN_URL: "provider"
61
68
  };
62
- var defatultWebOptions = {
69
+ var defaultWebOptions = {
63
70
  ELECTRON_SCHEME: "bigio",
64
71
  SCHEME_NAME_IN_URL: "scheme",
65
72
  PROVIDERS: ["github", "google"],
66
73
  PROVIDER_NAME_IN_URL: "provider",
67
- CHALLENGE_NAME_IN_URL: "electron_challenge",
74
+ CHALLENGE_NAME_IN_URL: "electron-challenge",
68
75
  WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: "electron-handoff",
69
- BACKEND_FAST_TICKET_URL: "electron/fastTicket"
76
+ BACKEND_FAST_TICKET_URL: "electron/fastTicket",
77
+ SCOPES_NAME_IN_URL: "electron-scopes",
78
+ LOGINHINT_NAME_IN_URL: "electron-loginhint",
79
+ ADDITIONAL_DATA_NAME_IN_URL: "electron-addata",
80
+ REQUEST_SIGN_UP_NAME_IN_URL: "electron-reqsignup",
81
+ AUTH_STATUS_NAME_IN_URL: "electron-status"
70
82
  };
71
83
 
72
- export { defatultWebOptions, defaultButtonOptions, defaultMainPluginOptions, defaultRendererPluginOptions, defaultServerPluginOptions };
84
+ export { defaultButtonOptions, defaultMainPluginOptions, defaultRendererPluginOptions, defaultServerPluginOptions, defaultWebOptions };
73
85
  //# sourceMappingURL=options.js.map
74
86
  //# sourceMappingURL=options.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/options/electron-plugin-options.ts"],"names":[],"mappings":";AA+MO,IAAM,0BAAA,GAA6B;AAAA,EACtC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,mBAAA;AAAA,EACtB,uBAAA,EAAyB,qBAAA;AAAA,EACzB,kBAAA,EAAoB,mCAAA;AAAA,EACpB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,6BAAA,EAA+B,+BAAA;AAAA,EAC/B,iBAAA,EAAmB,gBAAA;AAAA;AAAA,EAEnB,kBAAA,EAAoB,QAAA;AAAA,EACpB,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,gBAAgB,EAAA,GAAK,CAAA;AAAA,EACrB,yBAAA,EAA2B,CAAA,GAAI,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK;AAAA;AAElD;AAEO,IAAM,4BAAA,GAA+B;AAAA,EACxC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,oBAAA,EAAsB,mBAAA;AAAA,EACtB,qBAAA,EAAuB,IAAA;AAAA,EACvB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kBAAA,EAAoB,QAAA;AAAA,EACpB,sBAAA,EAAwB;AAC5B;AAEO,IAAM,wBAAA,GAA2B;AAAA,EACpC,SAAA,EAAW,KAAA;AAAA,EACX,OAAA,EAAS,IAAA;AAAA,EACT,mBAAA,EAAqB,uBAAA;AAAA,EACrB,iBAAA,EAAmB,qBAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,iBAAA,EAAmB,cAAA;AAAA,EACnB,eAAA,EAAiB,OAAA;AAAA,EACjB,sBAAA,EAAwB,cAAA;AAAA,EACxB,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,wBAAA,EAA0B,eAAA;AAAA,EAC1B,sBAAA,EAAwB,aAAA;AAAA,EACxB,wBAAA,EAA0B,EAAA;AAAA,EAC1B,YAAA,EAAc,6BAAA;AAAA,EACd,kCAAA,EAAoC,kBAAA;AAAA,EACpC,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,wBAAA,EAA0B,cAAA;AAAA,EAC1B,uBAAA,EAAyB,KAAA;AAAA,EACzB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,2BAAA,EAA6B;AACjC;AAEO,IAAM,oBAAA,GAAuB;AAAA,EAChC,YAAA,EAAc,6BAAA;AAAA,EACd,oBAAA,EAAsB;AAC1B;AAEO,IAAM,kBAAA,GAAqB;AAAA,EAC9B,eAAA,EAAiB,OAAA;AAAA,EACjB,kBAAA,EAAoB,QAAA;AAAA,EACpB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,uBAAA,EAAyB;AAC7B","file":"options.js","sourcesContent":["// root/src/utils/electron-plugin-options.ts\n\nimport type { BetterAuthClientOptions, Session, User } from 'better-auth'\nimport type { AuthClient } from 'better-auth/client'\nimport type { BrowserWindow } from 'electron'\n// import { renderOAuthPage } from '../preact/electron-login'\n// import type { BigIOError } from '../utils/electron-plugin-env'\n\nexport type ElectronServerPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n PROVIDERS: string[]\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof logsgh\n debugMode?: boolean\n WEB_ERROR_PAGE_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_TO_BACKEND_HOST_PATH?: string\n ELECTRON_APP_HOST?: string\n\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n BACKEND_FAST_TICKET_URL?: string\n BACKEND_LOGIN_URL?: string\n PREACT_LOGIN_PAGE?: (\n baseURL?: string | undefined,\n scheme?: string | undefined,\n provider?: string | undefined,\n ) => string\n customPreactJS?: string\n TICKET_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CHALLENGE_NAME_IN_URL?: string\n TICKET_TTL_SEC?: number\n ELECTRON_SESSION_DURATION?: number\n}\n\nexport type ElectronRendererPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof log\n // betterAuthClient: AuthClient<BetterAuthClientOptions>\n debug?: boolean\n refetchSessionOnFocus?: boolean\n CHALLENGE_NAME_IN_URL?: string\n ELECTRON_APP_HOST?: string\n TICKET_NAME_IN_URL?: string\n onDeepLinkFailedFn?: (error: unknown) => Promise<void>\n onDeepLinkSuccessFn?: (data: {\n session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>\n user: User\n }) => Promise<void>\n lazySignalUIReadyForFn?: boolean\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n}\nexport type ElectronMainPluginOptions = {\n isOAuth: boolean\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n BETTER_AUTH_BASEURL: string\n PROVIDERS: string[]\n FRONTEND_URL: string\n ELECTRON_APP_NAME: string\n CONTENT_SECURITY_POLICY?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n // logger?: typeof bigIOLogger | typeof log\n debugMode?: boolean\n ELECTRON_VERIFIER_LENGTH?: number\n CHALLENGE_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CALLBACK_PATHNAME_IN_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_APP_HOST?: string\n ELECTRON_RENDERER_PATH?: string\n OLD_SCHOOL_ONBEFORE_WAY?: boolean\n GET_COOKIES_EVENT_NAME?: string\n ELECTRON_VERIFIER_FILE_NAME?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to clear cookies from the main process.\n * @example \"clear-Cookies\"\n */\n CLEAR_COOKIES_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n openHandlerHelper?: (details: Electron.HandlerDetails) => Electron.WindowOpenHandlerResponse\n\n beforeSendHelper?: (details: Electron.OnBeforeSendHeadersListenerDetails) => {\n callback: {\n requestHeaders: Record<string, string | string[]>\n cancel?: boolean\n }\n }\n customProtocolServingHelper?: {\n scheme?: string\n privileges?: {\n standard: boolean\n secure: boolean\n supportFetchAPI: boolean\n corsEnabled: boolean\n bypassCSP: boolean\n allowServiceWorkers?: boolean\n codeCache?: boolean\n stream?: boolean\n }\n protocolHandleOnCreateWindow?: (mainWindow: BrowserWindow) => Promise<void>\n protocolHandleOnAppReady?: (request: Request) => Response | Promise<Response>\n }\n}\nexport type ElectronButtonOptions = {\n FRONTEND_URL: string\n PROVIDER_NAME_IN_URL: string\n}\nexport type ElectronWebOptions = typeof defatultWebOptions\n\nexport const defaultServerPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n PROVIDERS: ['github', 'google'],\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n WEB_ERROR_PAGE_URL: 'http://localhost:3001/better-auth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_TO_BACKEND_HOST_PATH: 'from-electron-to-auth-backend',\n BACKEND_LOGIN_URL: 'electron/login',\n // PREACT_LOGIN_PAGE: renderOAuthPage,\n TICKET_NAME_IN_URL: 'ticket',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_TTL_SEC: 60 * 5,\n ELECTRON_SESSION_DURATION: 7 * 24 * 60 * 60 * 1000,\n // customPreactJS: customPreactJS,\n} satisfies Partial<ElectronServerPluginOptions>\n\nexport const defaultRendererPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n refetchSessionOnFocus: true,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_NAME_IN_URL: 'ticket',\n lazySignalUIReadyForFn: false,\n} satisfies Partial<ElectronRendererPluginOptions>\n\nexport const defaultMainPluginOptions = {\n debugMode: false,\n isOAuth: true,\n BETTER_AUTH_BASEURL: 'http://localhost:3002',\n ELECTRON_APP_NAME: 'bigio-electron-demo',\n PROVIDERS: ['github', 'google'],\n ELECTRON_APP_HOST: 'app-renderer',\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_RENDERER_PATH: 'out/renderer',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CLEAR_COOKIES_EVENT_NAME: 'clear-Cookies',\n GET_COOKIES_EVENT_NAME: 'get-Cookies',\n ELECTRON_VERIFIER_LENGTH: 32,\n FRONTEND_URL: 'http://localhost:3002/oauth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n CALLBACK_PATHNAME_IN_URL: 'callbackpath',\n OLD_SCHOOL_ONBEFORE_WAY: false,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_VERIFIER_FILE_NAME: 'bigio-auth-state.json',\n} satisfies Partial<ElectronMainPluginOptions>\n\nexport const defaultButtonOptions = {\n FRONTEND_URL: 'http://localhost:3001/oauth',\n PROVIDER_NAME_IN_URL: 'provider',\n} satisfies Partial<ElectronButtonOptions>\n\nexport const defatultWebOptions = {\n ELECTRON_SCHEME: 'bigio',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDERS: ['github', 'google'],\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n} as const\n"]}
1
+ {"version":3,"sources":["../src/options/electron-plugin-options.ts"],"names":[],"mappings":";AAuNO,IAAM,0BAAA,GAA6B;AAAA,EACtC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,mBAAA;AAAA,EACtB,uBAAA,EAAyB,qBAAA;AAAA,EACzB,kBAAA,EAAoB,mCAAA;AAAA,EACpB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,6BAAA,EAA+B,+BAAA;AAAA,EAC/B,iBAAA,EAAmB,gBAAA;AAAA;AAAA,EAEnB,kBAAA,EAAoB,QAAA;AAAA,EACpB,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,uBAAA,EAAyB,iBAAA;AAAA,EACzB,gBAAgB,EAAA,GAAK,CAAA;AAAA,EACrB,yBAAA,EAA2B,CAAA,GAAI,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK;AAAA;AAElD;AAEO,IAAM,4BAAA,GAA+B;AAAA,EACxC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,oBAAA,EAAsB,mBAAA;AAAA,EACtB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAE9B,qBAAA,EAAuB,IAAA;AAAA,EACvB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kBAAA,EAAoB,QAAA;AAAA,EACpB,sBAAA,EAAwB,KAAA;AAAA,EACxB,YAAA,EAAc,6BAAA;AAAA,EACd,oBAAA,EAAsB,UAAA;AAAA,EACtB,kBAAA,EAAoB,iBAAA;AAAA,EACpB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,2BAAA,EAA6B,iBAAA;AAAA,EAC7B,2BAAA,EAA6B,oBAAA;AAAA,EAC7B,uBAAA,EAAyB;AAC7B;AAEO,IAAM,wBAAA,GAA2B;AAAA,EACpC,SAAA,EAAW,KAAA;AAAA,EACX,OAAA,EAAS,IAAA;AAAA,EACT,mBAAA,EAAqB,uBAAA;AAAA,EACrB,iBAAA,EAAmB,qBAAA;AAAA,EACnB,iBAAA,EAAmB,cAAA;AAAA,EACnB,eAAA,EAAiB,OAAA;AAAA,EACjB,sBAAA,EAAwB,cAAA;AAAA,EACxB,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,wBAAA,EAA0B,eAAA;AAAA,EAC1B,sBAAA,EAAwB,aAAA;AAAA,EACxB,wBAAA,EAA0B,EAAA;AAAA,EAC1B,YAAA,EAAc,6BAAA;AAAA,EACd,kCAAA,EAAoC,kBAAA;AAAA,EACpC,kBAAA,EAAoB,QAAA;AAAA,EACpB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,wBAAA,EAA0B,cAAA;AAAA,EAC1B,uBAAA,EAAyB,KAAA;AAAA,EACzB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,2BAAA,EAA6B;AACjC;AAEO,IAAM,oBAAA,GAAuB;AAAA,EAChC,YAAA,EAAc,6BAAA;AAAA,EACd,oBAAA,EAAsB;AAC1B;AAEO,IAAM,iBAAA,GAAoB;AAAA,EAC7B,eAAA,EAAiB,OAAA;AAAA,EACjB,kBAAA,EAAoB,QAAA;AAAA,EACpB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,uBAAA,EAAyB,qBAAA;AAAA,EACzB,kBAAA,EAAoB,iBAAA;AAAA,EACpB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,2BAAA,EAA6B,iBAAA;AAAA,EAC7B,2BAAA,EAA6B,oBAAA;AAAA,EAC7B,uBAAA,EAAyB;AAC7B","file":"options.js","sourcesContent":["// root/src/utils/electron-plugin-options.ts\n\nimport type { BetterAuthClientOptions, Session, User } from 'better-auth'\nimport type { AuthClient } from 'better-auth/client'\nimport type { BrowserWindow } from 'electron'\n// import { renderOAuthPage } from '../preact/electron-login'\n// import type { BigIOError } from '../utils/electron-plugin-env'\n\nexport type ElectronServerPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n PROVIDERS: string[]\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof logsgh\n debugMode?: boolean\n WEB_ERROR_PAGE_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_TO_BACKEND_HOST_PATH?: string\n ELECTRON_APP_HOST?: string\n\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n BACKEND_FAST_TICKET_URL?: string\n BACKEND_LOGIN_URL?: string\n PREACT_LOGIN_PAGE?: (\n baseURL?: string | undefined,\n scheme?: string | undefined,\n provider?: string | undefined,\n ) => string\n customPreactJS?: string\n TICKET_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CHALLENGE_NAME_IN_URL?: string\n AUTH_STATUS_NAME_IN_URL?: string\n TICKET_TTL_SEC?: number\n ELECTRON_SESSION_DURATION?: number\n}\n\nexport type ElectronRendererPluginOptions = {\n FRONTEND_URL?: string\n PROVIDER_NAME_IN_URL?: string\n SCOPES_NAME_IN_URL?: string\n LOGINHINT_NAME_IN_URL?: string\n ADDITIONAL_DATA_NAME_IN_URL?: string\n PROVIDERS?: string[]\n REQUEST_SIGN_UP_NAME_IN_URL?: string\n AUTH_STATUS_NAME_IN_URL?: string\n\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof log\n // betterAuthClient: AuthClient<BetterAuthClientOptions>\n debug?: boolean\n refetchSessionOnFocus?: boolean\n CHALLENGE_NAME_IN_URL?: string\n ELECTRON_APP_HOST?: string\n TICKET_NAME_IN_URL?: string\n onDeepLinkFailedFn?: (error: unknown) => Promise<void>\n onDeepLinkSuccessFn?: <T>(data: {\n session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>\n user: User\n }) => Promise<T | unknown>\n lazySignalUIReadyForFn?: boolean\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n}\nexport type ElectronMainPluginOptions = {\n isOAuth: boolean\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n BETTER_AUTH_BASEURL: string\n FRONTEND_URL: string\n ELECTRON_APP_NAME: string\n CONTENT_SECURITY_POLICY?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n // logger?: typeof bigIOLogger | typeof log\n debugMode?: boolean\n ELECTRON_VERIFIER_LENGTH?: number\n CHALLENGE_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n CALLBACK_PATHNAME_IN_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_APP_HOST?: string\n ELECTRON_RENDERER_PATH?: string\n OLD_SCHOOL_ONBEFORE_WAY?: boolean\n GET_COOKIES_EVENT_NAME?: string\n ELECTRON_VERIFIER_FILE_NAME?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to clear cookies from the main process.\n * @example \"clear-Cookies\"\n */\n CLEAR_COOKIES_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n openHandlerHelper?: (details: Electron.HandlerDetails) => Electron.WindowOpenHandlerResponse\n\n beforeSendHelper?: (details: Electron.OnBeforeSendHeadersListenerDetails) => {\n callback: {\n requestHeaders: Record<string, string | string[]>\n cancel?: boolean\n }\n }\n customProtocolServingHelper?: {\n scheme?: string\n privileges?: {\n standard: boolean\n secure: boolean\n supportFetchAPI: boolean\n corsEnabled: boolean\n bypassCSP: boolean\n allowServiceWorkers?: boolean\n codeCache?: boolean\n stream?: boolean\n }\n protocolHandleOnCreateWindow?: (mainWindow: BrowserWindow) => Promise<void>\n protocolHandleOnAppReady?: (request: Request) => Response | Promise<Response>\n }\n}\nexport type ElectronButtonOptions = {\n FRONTEND_URL: string\n PROVIDER_NAME_IN_URL: string\n}\nexport type ElectronWebOptions = typeof defaultWebOptions\n\nexport const defaultServerPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n PROVIDERS: ['github', 'google'],\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n WEB_ERROR_PAGE_URL: 'http://localhost:3001/better-auth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_TO_BACKEND_HOST_PATH: 'from-electron-to-auth-backend',\n BACKEND_LOGIN_URL: 'electron/login',\n // PREACT_LOGIN_PAGE: renderOAuthPage,\n TICKET_NAME_IN_URL: 'ticket',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron-challenge',\n AUTH_STATUS_NAME_IN_URL: 'electron-status',\n TICKET_TTL_SEC: 60 * 5,\n ELECTRON_SESSION_DURATION: 7 * 24 * 60 * 60 * 1000,\n // customPreactJS: customPreactJS,\n} satisfies Partial<ElectronServerPluginOptions>\n\nexport const defaultRendererPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n PROVIDERS: ['github', 'google'],\n\n refetchSessionOnFocus: true,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CHALLENGE_NAME_IN_URL: 'electron-challenge',\n TICKET_NAME_IN_URL: 'ticket',\n lazySignalUIReadyForFn: false,\n FRONTEND_URL: 'http://localhost:3001/oauth',\n PROVIDER_NAME_IN_URL: 'provider',\n SCOPES_NAME_IN_URL: 'electron-scopes',\n LOGINHINT_NAME_IN_URL: 'electron-loginhint',\n ADDITIONAL_DATA_NAME_IN_URL: 'electron-addata',\n REQUEST_SIGN_UP_NAME_IN_URL: 'electron-reqsignup',\n AUTH_STATUS_NAME_IN_URL: 'electron-status',\n} satisfies Partial<ElectronRendererPluginOptions>\n\nexport const defaultMainPluginOptions = {\n debugMode: false,\n isOAuth: true,\n BETTER_AUTH_BASEURL: 'http://localhost:3002',\n ELECTRON_APP_NAME: 'bigio-electron-demo',\n ELECTRON_APP_HOST: 'app-renderer',\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_RENDERER_PATH: 'out/renderer',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CLEAR_COOKIES_EVENT_NAME: 'clear-Cookies',\n GET_COOKIES_EVENT_NAME: 'get-Cookies',\n ELECTRON_VERIFIER_LENGTH: 32,\n FRONTEND_URL: 'http://localhost:3001/oauth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n SCHEME_NAME_IN_URL: 'scheme',\n CHALLENGE_NAME_IN_URL: 'electron-challenge',\n CALLBACK_PATHNAME_IN_URL: 'callbackpath',\n OLD_SCHOOL_ONBEFORE_WAY: false,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_VERIFIER_FILE_NAME: 'bigio-auth-state.json',\n} satisfies Partial<ElectronMainPluginOptions>\n\nexport const defaultButtonOptions = {\n FRONTEND_URL: 'http://localhost:3001/oauth',\n PROVIDER_NAME_IN_URL: 'provider',\n} satisfies Partial<ElectronButtonOptions>\n\nexport const defaultWebOptions = {\n ELECTRON_SCHEME: 'bigio',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDERS: ['github', 'google'],\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron-challenge',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n SCOPES_NAME_IN_URL: 'electron-scopes',\n LOGINHINT_NAME_IN_URL: 'electron-loginhint',\n ADDITIONAL_DATA_NAME_IN_URL: 'electron-addata',\n REQUEST_SIGN_UP_NAME_IN_URL: 'electron-reqsignup',\n AUTH_STATUS_NAME_IN_URL: 'electron-status',\n} as const\n"]}
@@ -1,17 +1,42 @@
1
1
  import * as better_auth from 'better-auth';
2
+ import { Session, User } from 'better-auth';
2
3
  import * as better_auth_client from 'better-auth/client';
3
4
  import { ElectronRendererPluginOptions } from './options.js';
4
5
  import { electronServerPlugin } from './server.js';
5
6
  import 'electron';
6
7
  import 'zod';
7
8
 
9
+ type ExchangeResult = {
10
+ session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>;
11
+ user: User;
12
+ };
13
+ type SucceedFn = <T>(data: ExchangeResult) => Promise<T | unknown>;
14
+ type OnDeepLinkSucceedFn = (succeedFn: SucceedFn) => (() => void) | undefined;
15
+ type FailedFn = (error: unknown) => Promise<unknown> | unknown;
16
+ type OnDeepLinkFailedFn = (failedFn: FailedFn) => (() => void) | undefined;
17
+ type NewUserFn = <T>(data: ExchangeResult) => Promise<T | unknown>;
18
+ type OnDeepLinkNewUserFn = (newUserFn: NewUserFn) => (() => void) | undefined;
8
19
  declare const electronRendererPlugin: (electronRendererPluginOptions: ElectronRendererPluginOptions) => {
9
20
  id: "bigio-electron-renderer-plugin";
10
21
  $InferServerPlugin: ReturnType<typeof electronServerPlugin>;
11
22
  getActions: ($fetch: better_auth_client.BetterFetch, $store: better_auth.ClientStore, options: better_auth.BetterAuthClientOptions | undefined) => {
12
23
  bigio: {
13
- onDeepLinkSuccess: (fn: ElectronRendererPluginOptions["onDeepLinkSuccessFn"]) => void;
14
- onDeepLinkFailed: (fn: ElectronRendererPluginOptions["onDeepLinkFailedFn"]) => void;
24
+ signInSocial: (params: {
25
+ provider: string;
26
+ scopes?: string[];
27
+ additionalData?: Record<string, unknown>;
28
+ loginHint?: string;
29
+ requestSignUp?: boolean;
30
+ }) => void;
31
+ onDeepLinkSuccess: OnDeepLinkSucceedFn;
32
+ onDeepLinkFailed: OnDeepLinkFailedFn;
33
+ onDeepLinkNewUser: OnDeepLinkNewUserFn;
34
+ };
35
+ } | {
36
+ bigio: {
37
+ onDeepLinkSuccess: () => () => void;
38
+ onDeepLinkFailed: () => () => void;
39
+ onDeepLinkNewUser: () => () => void;
15
40
  };
16
41
  };
17
42
  };