@better-auth/electron 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/preload.d.mts +13 -13
- package/dist/proxy.mjs +1 -1
- package/dist/{version-G_DbEvps.mjs → version-C38stf-Q.mjs} +1 -1
- package/package.json +6 -6
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-C38stf-Q.mjs";
|
|
2
2
|
import { n as isProcessType, r as parseProtocolScheme, t as getChannelPrefixWithDelimiter } from "./utils-DxDKRT6e.mjs";
|
|
3
3
|
import { BetterAuthError } from "@better-auth/core/error";
|
|
4
4
|
import { base64, base64Url } from "@better-auth/utils/base64";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-C38stf-Q.mjs";
|
|
2
2
|
import { createAuthMiddleware } from "@better-auth/core/api";
|
|
3
3
|
import { APIError, BASE_ERROR_CODES } from "@better-auth/core/error";
|
|
4
4
|
import { base64Url } from "@better-auth/utils/base64";
|
package/dist/preload.d.mts
CHANGED
|
@@ -813,7 +813,7 @@ interface AppleProfile {
|
|
|
813
813
|
* The email address is either the user's real email address or the proxy
|
|
814
814
|
* address, depending on their status private email relay service.
|
|
815
815
|
*/
|
|
816
|
-
email
|
|
816
|
+
email?: string;
|
|
817
817
|
/**
|
|
818
818
|
* A string or Boolean value that indicates whether the service verifies
|
|
819
819
|
* the email. The value can either be a string ("true" or "false") or a
|
|
@@ -861,7 +861,7 @@ interface AppleNonConformUser {
|
|
|
861
861
|
email: string;
|
|
862
862
|
}
|
|
863
863
|
interface AppleOptions extends ProviderOptions<AppleProfile> {
|
|
864
|
-
clientId: string;
|
|
864
|
+
clientId: string | string[];
|
|
865
865
|
appBundleIdentifier?: string | undefined;
|
|
866
866
|
audience?: (string | string[]) | undefined;
|
|
867
867
|
}
|
|
@@ -908,7 +908,7 @@ interface CognitoProfile {
|
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}
|
|
910
910
|
interface CognitoOptions extends ProviderOptions<CognitoProfile> {
|
|
911
|
-
clientId: string;
|
|
911
|
+
clientId: string | string[];
|
|
912
912
|
/**
|
|
913
913
|
* The Cognito domain (e.g., "your-app.auth.us-east-1.amazoncognito.com")
|
|
914
914
|
*/
|
|
@@ -961,7 +961,7 @@ interface DiscordProfile extends Record<string, any> {
|
|
|
961
961
|
/** whether the email on this account has been verified */
|
|
962
962
|
verified: boolean;
|
|
963
963
|
/** the user's email */
|
|
964
|
-
email
|
|
964
|
+
email?: string | null;
|
|
965
965
|
/**
|
|
966
966
|
* the flags on a user's account:
|
|
967
967
|
* https://discord.com/developers/docs/resources/user#user-object-user-flags
|
|
@@ -1003,8 +1003,8 @@ interface DiscordOptions extends ProviderOptions<DiscordProfile> {
|
|
|
1003
1003
|
interface FacebookProfile {
|
|
1004
1004
|
id: string;
|
|
1005
1005
|
name: string;
|
|
1006
|
-
email
|
|
1007
|
-
email_verified
|
|
1006
|
+
email?: string;
|
|
1007
|
+
email_verified?: boolean;
|
|
1008
1008
|
picture: {
|
|
1009
1009
|
data: {
|
|
1010
1010
|
height: number;
|
|
@@ -1015,7 +1015,7 @@ interface FacebookProfile {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
interface FacebookOptions extends ProviderOptions<FacebookProfile> {
|
|
1018
|
-
clientId: string;
|
|
1018
|
+
clientId: string | string[];
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Extend list of fields to retrieve from the Facebook user profile.
|
|
1021
1021
|
*
|
|
@@ -1065,7 +1065,7 @@ interface GithubProfile {
|
|
|
1065
1065
|
company: string;
|
|
1066
1066
|
blog: string;
|
|
1067
1067
|
location: string;
|
|
1068
|
-
email: string;
|
|
1068
|
+
email: string | null;
|
|
1069
1069
|
hireable: boolean;
|
|
1070
1070
|
bio: string;
|
|
1071
1071
|
twitter_username: string;
|
|
@@ -1119,7 +1119,7 @@ interface MicrosoftEntraIDProfile extends Record<string, any> {
|
|
|
1119
1119
|
/** The primary username that represents the user */
|
|
1120
1120
|
preferred_username: string;
|
|
1121
1121
|
/** User's email address */
|
|
1122
|
-
email
|
|
1122
|
+
email?: string;
|
|
1123
1123
|
/** Human-readable value that identifies the subject of the token */
|
|
1124
1124
|
name: string;
|
|
1125
1125
|
/** Matches the parameter included in the original authorize request */
|
|
@@ -1198,7 +1198,7 @@ interface MicrosoftEntraIDProfile extends Record<string, any> {
|
|
|
1198
1198
|
given_name: string;
|
|
1199
1199
|
}
|
|
1200
1200
|
interface MicrosoftOptions extends ProviderOptions<MicrosoftEntraIDProfile> {
|
|
1201
|
-
clientId: string;
|
|
1201
|
+
clientId: string | string[];
|
|
1202
1202
|
/**
|
|
1203
1203
|
* The tenant ID of the Microsoft account
|
|
1204
1204
|
* @default "common"
|
|
@@ -1249,7 +1249,7 @@ interface GoogleProfile {
|
|
|
1249
1249
|
sub: string;
|
|
1250
1250
|
}
|
|
1251
1251
|
interface GoogleOptions extends ProviderOptions<GoogleProfile> {
|
|
1252
|
-
clientId: string;
|
|
1252
|
+
clientId: string | string[];
|
|
1253
1253
|
/**
|
|
1254
1254
|
* The access type to use for the authorization code request
|
|
1255
1255
|
*/
|
|
@@ -1533,8 +1533,8 @@ interface LinkedInProfile {
|
|
|
1533
1533
|
country: string;
|
|
1534
1534
|
language: string;
|
|
1535
1535
|
};
|
|
1536
|
-
email
|
|
1537
|
-
email_verified
|
|
1536
|
+
email?: string;
|
|
1537
|
+
email_verified?: boolean;
|
|
1538
1538
|
}
|
|
1539
1539
|
interface LinkedInOptions extends ProviderOptions<LinkedInProfile> {
|
|
1540
1540
|
clientId: string;
|
package/dist/proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { t as PACKAGE_VERSION } from "./version-C38stf-Q.mjs";
|
|
2
2
|
import { r as parseProtocolScheme } from "./utils-DxDKRT6e.mjs";
|
|
3
3
|
import { parseCookies } from "better-auth/cookies";
|
|
4
4
|
//#region src/proxy.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/electron",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"description": "Better Auth integration for Electron applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/better-sqlite3": "^7.6.13",
|
|
80
80
|
"better-sqlite3": "^12.6.2",
|
|
81
|
-
"electron": "^
|
|
81
|
+
"electron": "^41.2.2",
|
|
82
82
|
"tsdown": "0.21.1",
|
|
83
|
-
"@better-auth/core": "1.6.
|
|
84
|
-
"better-auth": "1.6.
|
|
83
|
+
"@better-auth/core": "1.6.8",
|
|
84
|
+
"better-auth": "1.6.8"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@better-auth/utils": "0.4.0",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"better-call": "1.3.5",
|
|
90
90
|
"conf": "^15.0.2",
|
|
91
91
|
"electron": ">=36.0.0",
|
|
92
|
-
"@better-auth/core": "^1.6.
|
|
93
|
-
"better-auth": "^1.6.
|
|
92
|
+
"@better-auth/core": "^1.6.8",
|
|
93
|
+
"better-auth": "^1.6.8"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"electron": {
|