@better-auth/electron 1.7.0-beta.6 → 1.7.0-beta.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.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/preload.d.mts +163 -232
- package/dist/proxy.mjs +1 -1
- package/dist/{version-BTlyLl-N.mjs → version-DPq9tYZW.mjs} +1 -1
- package/package.json +5 -5
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-DPq9tYZW.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.d.mts
CHANGED
|
@@ -99,7 +99,7 @@ declare const electron: (options?: ElectronOptions | undefined) => {
|
|
|
99
99
|
image?: string | null | undefined;
|
|
100
100
|
} & Record<string, any>;
|
|
101
101
|
} | null) => void;
|
|
102
|
-
socialProviders: better_auth0.
|
|
102
|
+
socialProviders: better_auth0.OAuthProvider[];
|
|
103
103
|
authCookies: better_auth0.BetterAuthCookies;
|
|
104
104
|
logger: ReturnType<typeof better_auth0.createLogger>;
|
|
105
105
|
rateLimit: {
|
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-DPq9tYZW.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
|
@@ -757,57 +757,29 @@ type OAuth2UserInfo = {
|
|
|
757
757
|
emailVerified: boolean;
|
|
758
758
|
};
|
|
759
759
|
/**
|
|
760
|
-
*
|
|
760
|
+
* Request metadata available to provider refresh hooks.
|
|
761
761
|
*
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
* callback can fall back to the request when the provider omits `scope` from
|
|
766
|
-
* its token response (RFC 6749 §5.1).
|
|
762
|
+
* The refresh flow may be triggered by endpoints such as `getAccessToken` or
|
|
763
|
+
* `refreshToken`; this context gives provider hooks access to the triggering
|
|
764
|
+
* request without exposing the full endpoint implementation surface.
|
|
767
765
|
*/
|
|
768
|
-
interface
|
|
769
|
-
|
|
770
|
-
|
|
766
|
+
interface OAuthRefreshContext {
|
|
767
|
+
headers?: Headers | undefined;
|
|
768
|
+
request?: Request | undefined;
|
|
771
769
|
}
|
|
772
|
-
|
|
773
|
-
* How much an RP trusts a provider's echoed token-response `scope` when
|
|
774
|
-
* persisting `account.grantedScopes`.
|
|
775
|
-
*
|
|
776
|
-
* - `"full-grant"`: the echo is the user's complete current grant, so the seam
|
|
777
|
-
* replaces the stored grant with it. This is the only path that may narrow
|
|
778
|
-
* the grant. Declare it only for providers whose token response reports the
|
|
779
|
-
* full combined grant, e.g. Google with `include_granted_scopes`.
|
|
780
|
-
* - `"projection"`: the echo is this request's subset, so the seam unions it
|
|
781
|
-
* onto the stored grant. The safe default for every provider.
|
|
782
|
-
* - `"absent-echo"`: the provider omitted `scope`, so the grant equals what was
|
|
783
|
-
* requested (RFC 6749 §5.1) and the seam unions the requested set. Resolved
|
|
784
|
-
* at runtime by the persistence seam, never declared by a provider.
|
|
785
|
-
*
|
|
786
|
-
* @see https://www.rfc-editor.org/rfc/rfc6749#section-5.1
|
|
787
|
-
*/
|
|
788
|
-
type GrantAuthority = "full-grant" | "projection" | "absent-echo";
|
|
789
|
-
/**
|
|
790
|
-
* The authority a provider may declare for its own echoed scope. `"absent-echo"`
|
|
791
|
-
* is excluded because it is a runtime condition (an omitted echo), not a
|
|
792
|
-
* provider trait.
|
|
793
|
-
*/
|
|
794
|
-
type ProviderGrantAuthority = Exclude<GrantAuthority, "absent-echo">;
|
|
795
|
-
interface UpstreamProvider<T extends Record<string, any> = Record<string, any>, O extends Record<string, any> = Partial<ProviderOptions>> {
|
|
770
|
+
interface OAuthProvider<T extends Record<string, any> = Record<string, any>, O extends Record<string, any> = Partial<ProviderOptions>> {
|
|
796
771
|
id: LiteralString;
|
|
797
772
|
/**
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
|
|
801
|
-
callbackPath: string;
|
|
802
|
-
/**
|
|
803
|
-
* How the persistence seam treats this provider's echoed token-response
|
|
804
|
-
* `scope`. Declare `"full-grant"` only when the echo is the user's complete
|
|
805
|
-
* current grant (e.g. Google with `include_granted_scopes`); otherwise the
|
|
806
|
-
* echo is unioned onto the stored grant.
|
|
773
|
+
* Optional path under the resolved per-request `baseURL` where this
|
|
774
|
+
* provider's OAuth callback handler is mounted. Providers that use the
|
|
775
|
+
* shared `/callback/<id>` route can omit this.
|
|
807
776
|
*
|
|
808
|
-
*
|
|
777
|
+
* Custom paths must start with `/`.
|
|
778
|
+
*
|
|
779
|
+
* Endpoints compose `redirectURI = ctx.context.baseURL + callbackPath` per
|
|
780
|
+
* request, so the provider must not hardcode an origin or `baseURL` here.
|
|
809
781
|
*/
|
|
810
|
-
|
|
782
|
+
callbackPath?: string | undefined;
|
|
811
783
|
createAuthorizationURL: (data: {
|
|
812
784
|
state: string;
|
|
813
785
|
codeVerifier: string;
|
|
@@ -815,6 +787,12 @@ interface UpstreamProvider<T extends Record<string, any> = Record<string, any>,
|
|
|
815
787
|
redirectURI: string;
|
|
816
788
|
display?: string | undefined;
|
|
817
789
|
loginHint?: string | undefined;
|
|
790
|
+
/**
|
|
791
|
+
* OIDC nonce generated by the redirect initiator and persisted in OAuth
|
|
792
|
+
* state. Providers that set `requiresIdTokenNonce` must forward this to
|
|
793
|
+
* the authorization URL as the `nonce` parameter.
|
|
794
|
+
*/
|
|
795
|
+
idTokenNonce?: string | undefined;
|
|
818
796
|
/**
|
|
819
797
|
* Extra query parameters to append to the authorization URL.
|
|
820
798
|
* Providers forward these to the shared `createAuthorizationURL` helper,
|
|
@@ -822,7 +800,7 @@ interface UpstreamProvider<T extends Record<string, any> = Record<string, any>,
|
|
|
822
800
|
* before applying them.
|
|
823
801
|
*/
|
|
824
802
|
additionalParams?: Record<string, string> | undefined;
|
|
825
|
-
}) => Awaitable<
|
|
803
|
+
}) => Awaitable<URL>;
|
|
826
804
|
name: string;
|
|
827
805
|
validateAuthorizationCode: (data: {
|
|
828
806
|
code: string;
|
|
@@ -831,6 +809,12 @@ interface UpstreamProvider<T extends Record<string, any> = Record<string, any>,
|
|
|
831
809
|
deviceId?: string | undefined;
|
|
832
810
|
}) => Promise<OAuth2Tokens | null>;
|
|
833
811
|
getUserInfo: (token: OAuth2Tokens & {
|
|
812
|
+
/**
|
|
813
|
+
* OIDC nonce recovered from OAuth state. Providers that required an
|
|
814
|
+
* ID-token nonce must pass this to `verifyProviderIdToken` before
|
|
815
|
+
* trusting ID-token claims.
|
|
816
|
+
*/
|
|
817
|
+
expectedIdTokenNonce?: string | undefined;
|
|
834
818
|
/**
|
|
835
819
|
* The user object from the provider
|
|
836
820
|
* This is only available for some providers like Apple
|
|
@@ -847,9 +831,14 @@ interface UpstreamProvider<T extends Record<string, any> = Record<string, any>,
|
|
|
847
831
|
data: T;
|
|
848
832
|
} | null>;
|
|
849
833
|
/**
|
|
850
|
-
* Custom function to refresh a token
|
|
834
|
+
* Custom function to refresh a token.
|
|
835
|
+
*
|
|
836
|
+
* Receives request metadata from the endpoint that triggered the refresh.
|
|
837
|
+
* Providers that don't need request-scoped data can ignore the second
|
|
838
|
+
* argument.
|
|
851
839
|
*/
|
|
852
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<OAuth2Tokens>) | undefined;
|
|
840
|
+
refreshAccessToken?: ((refreshToken: string, ctx?: OAuthRefreshContext) => Promise<OAuth2Tokens>) | undefined;
|
|
841
|
+
revokeToken?: ((token: string) => Promise<void>) | undefined;
|
|
853
842
|
/**
|
|
854
843
|
* Declarative id_token verification config consumed by the shared
|
|
855
844
|
* `verifyProviderIdToken` verifier. Providers set this instead of implementing a boolean
|
|
@@ -862,6 +851,13 @@ interface UpstreamProvider<T extends Record<string, any> = Record<string, any>,
|
|
|
862
851
|
* against this value to prevent authorization server mix-up attacks.
|
|
863
852
|
*/
|
|
864
853
|
issuer?: string | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* Require shared OAuth redirect routes to bind ID-token verification to an
|
|
856
|
+
* authorization request nonce. When true, routes generate `idTokenNonce`,
|
|
857
|
+
* pass it to `createAuthorizationURL`, persist it in state, and provide it
|
|
858
|
+
* back to `getUserInfo` as `expectedIdTokenNonce`.
|
|
859
|
+
*/
|
|
860
|
+
requiresIdTokenNonce?: boolean | undefined;
|
|
865
861
|
/**
|
|
866
862
|
* Disable implicit sign up for new users. When set to true for the provider,
|
|
867
863
|
* sign-in need to be called with with requestSignUp as true to create new users.
|
|
@@ -1519,11 +1515,14 @@ interface GoogleOptions extends ProviderOptions<GoogleProfile> {
|
|
|
1519
1515
|
*/
|
|
1520
1516
|
hd?: string | undefined;
|
|
1521
1517
|
/**
|
|
1522
|
-
*
|
|
1523
|
-
*
|
|
1524
|
-
* in the
|
|
1518
|
+
* Whether to send `include_granted_scopes=true` to Google's authorization
|
|
1519
|
+
* endpoint, which lets new access tokens cover scopes from prior grants
|
|
1520
|
+
* in addition to the ones requested for this flow. Set to `false` when
|
|
1521
|
+
* each OAuth flow should request only its own scopes.
|
|
1525
1522
|
*
|
|
1526
|
-
*
|
|
1523
|
+
* Defaults to `true`.
|
|
1524
|
+
*
|
|
1525
|
+
* @see https://developers.google.com/identity/protocols/oauth2/web-server#incrementalAuth
|
|
1527
1526
|
*/
|
|
1528
1527
|
includeGrantedScopes?: boolean | undefined;
|
|
1529
1528
|
}
|
|
@@ -2396,7 +2395,6 @@ declare const socialProviders: {
|
|
|
2396
2395
|
apple: (options: AppleOptions) => {
|
|
2397
2396
|
id: "apple";
|
|
2398
2397
|
name: string;
|
|
2399
|
-
callbackPath: string;
|
|
2400
2398
|
createAuthorizationURL({
|
|
2401
2399
|
state,
|
|
2402
2400
|
scopes,
|
|
@@ -2409,11 +2407,9 @@ declare const socialProviders: {
|
|
|
2409
2407
|
redirectURI: string;
|
|
2410
2408
|
display?: string | undefined;
|
|
2411
2409
|
loginHint?: string | undefined;
|
|
2410
|
+
idTokenNonce?: string | undefined;
|
|
2412
2411
|
additionalParams?: Record<string, string> | undefined;
|
|
2413
|
-
}): Promise<
|
|
2414
|
-
url: URL;
|
|
2415
|
-
requestedScopes: string[];
|
|
2416
|
-
}>;
|
|
2412
|
+
}): Promise<URL>;
|
|
2417
2413
|
validateAuthorizationCode: ({
|
|
2418
2414
|
code,
|
|
2419
2415
|
codeVerifier,
|
|
@@ -2433,6 +2429,7 @@ declare const socialProviders: {
|
|
|
2433
2429
|
};
|
|
2434
2430
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2435
2431
|
getUserInfo(token: OAuth2Tokens & {
|
|
2432
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2436
2433
|
user?: {
|
|
2437
2434
|
name?: {
|
|
2438
2435
|
firstName?: string;
|
|
@@ -2456,7 +2453,6 @@ declare const socialProviders: {
|
|
|
2456
2453
|
atlassian: (options: AtlassianOptions) => {
|
|
2457
2454
|
id: "atlassian";
|
|
2458
2455
|
name: string;
|
|
2459
|
-
callbackPath: string;
|
|
2460
2456
|
createAuthorizationURL({
|
|
2461
2457
|
state,
|
|
2462
2458
|
scopes,
|
|
@@ -2470,11 +2466,9 @@ declare const socialProviders: {
|
|
|
2470
2466
|
redirectURI: string;
|
|
2471
2467
|
display?: string | undefined;
|
|
2472
2468
|
loginHint?: string | undefined;
|
|
2469
|
+
idTokenNonce?: string | undefined;
|
|
2473
2470
|
additionalParams?: Record<string, string> | undefined;
|
|
2474
|
-
}): Promise<
|
|
2475
|
-
url: URL;
|
|
2476
|
-
requestedScopes: string[];
|
|
2477
|
-
}>;
|
|
2471
|
+
}): Promise<URL>;
|
|
2478
2472
|
validateAuthorizationCode: ({
|
|
2479
2473
|
code,
|
|
2480
2474
|
codeVerifier,
|
|
@@ -2487,6 +2481,7 @@ declare const socialProviders: {
|
|
|
2487
2481
|
}) => Promise<OAuth2Tokens>;
|
|
2488
2482
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2489
2483
|
getUserInfo(token: OAuth2Tokens & {
|
|
2484
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2490
2485
|
user?: {
|
|
2491
2486
|
name?: {
|
|
2492
2487
|
firstName?: string;
|
|
@@ -2510,7 +2505,6 @@ declare const socialProviders: {
|
|
|
2510
2505
|
cognito: (options: CognitoOptions) => {
|
|
2511
2506
|
id: "cognito";
|
|
2512
2507
|
name: string;
|
|
2513
|
-
callbackPath: string;
|
|
2514
2508
|
createAuthorizationURL({
|
|
2515
2509
|
state,
|
|
2516
2510
|
scopes,
|
|
@@ -2524,11 +2518,9 @@ declare const socialProviders: {
|
|
|
2524
2518
|
redirectURI: string;
|
|
2525
2519
|
display?: string | undefined;
|
|
2526
2520
|
loginHint?: string | undefined;
|
|
2521
|
+
idTokenNonce?: string | undefined;
|
|
2527
2522
|
additionalParams?: Record<string, string> | undefined;
|
|
2528
|
-
}): Promise<
|
|
2529
|
-
url: URL;
|
|
2530
|
-
requestedScopes: string[];
|
|
2531
|
-
}>;
|
|
2523
|
+
}): Promise<URL>;
|
|
2532
2524
|
validateAuthorizationCode: ({
|
|
2533
2525
|
code,
|
|
2534
2526
|
codeVerifier,
|
|
@@ -2547,6 +2539,7 @@ declare const socialProviders: {
|
|
|
2547
2539
|
maxTokenAge: string;
|
|
2548
2540
|
};
|
|
2549
2541
|
getUserInfo(token: OAuth2Tokens & {
|
|
2542
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2550
2543
|
user?: {
|
|
2551
2544
|
name?: {
|
|
2552
2545
|
firstName?: string;
|
|
@@ -2570,7 +2563,6 @@ declare const socialProviders: {
|
|
|
2570
2563
|
discord: (options: DiscordOptions) => {
|
|
2571
2564
|
id: "discord";
|
|
2572
2565
|
name: string;
|
|
2573
|
-
callbackPath: string;
|
|
2574
2566
|
createAuthorizationURL({
|
|
2575
2567
|
state,
|
|
2576
2568
|
scopes,
|
|
@@ -2583,11 +2575,9 @@ declare const socialProviders: {
|
|
|
2583
2575
|
redirectURI: string;
|
|
2584
2576
|
display?: string | undefined;
|
|
2585
2577
|
loginHint?: string | undefined;
|
|
2578
|
+
idTokenNonce?: string | undefined;
|
|
2586
2579
|
additionalParams?: Record<string, string> | undefined;
|
|
2587
|
-
}): Promise<
|
|
2588
|
-
url: URL;
|
|
2589
|
-
requestedScopes: string[];
|
|
2590
|
-
}>;
|
|
2580
|
+
}): Promise<URL>;
|
|
2591
2581
|
validateAuthorizationCode: ({
|
|
2592
2582
|
code,
|
|
2593
2583
|
redirectURI
|
|
@@ -2599,6 +2589,7 @@ declare const socialProviders: {
|
|
|
2599
2589
|
}) => Promise<OAuth2Tokens>;
|
|
2600
2590
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2601
2591
|
getUserInfo(token: OAuth2Tokens & {
|
|
2592
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2602
2593
|
user?: {
|
|
2603
2594
|
name?: {
|
|
2604
2595
|
firstName?: string;
|
|
@@ -2622,7 +2613,6 @@ declare const socialProviders: {
|
|
|
2622
2613
|
facebook: (options: FacebookOptions) => {
|
|
2623
2614
|
id: "facebook";
|
|
2624
2615
|
name: string;
|
|
2625
|
-
callbackPath: string;
|
|
2626
2616
|
createAuthorizationURL({
|
|
2627
2617
|
state,
|
|
2628
2618
|
scopes,
|
|
@@ -2636,11 +2626,9 @@ declare const socialProviders: {
|
|
|
2636
2626
|
redirectURI: string;
|
|
2637
2627
|
display?: string | undefined;
|
|
2638
2628
|
loginHint?: string | undefined;
|
|
2629
|
+
idTokenNonce?: string | undefined;
|
|
2639
2630
|
additionalParams?: Record<string, string> | undefined;
|
|
2640
|
-
}): Promise<
|
|
2641
|
-
url: URL;
|
|
2642
|
-
requestedScopes: string[];
|
|
2643
|
-
}>;
|
|
2631
|
+
}): Promise<URL>;
|
|
2644
2632
|
validateAuthorizationCode: ({
|
|
2645
2633
|
code,
|
|
2646
2634
|
redirectURI
|
|
@@ -2666,6 +2654,7 @@ declare const socialProviders: {
|
|
|
2666
2654
|
};
|
|
2667
2655
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2668
2656
|
getUserInfo(token: OAuth2Tokens & {
|
|
2657
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2669
2658
|
user?: {
|
|
2670
2659
|
name?: {
|
|
2671
2660
|
firstName?: string;
|
|
@@ -2689,7 +2678,6 @@ declare const socialProviders: {
|
|
|
2689
2678
|
figma: (options: FigmaOptions) => {
|
|
2690
2679
|
id: "figma";
|
|
2691
2680
|
name: string;
|
|
2692
|
-
callbackPath: string;
|
|
2693
2681
|
createAuthorizationURL({
|
|
2694
2682
|
state,
|
|
2695
2683
|
scopes,
|
|
@@ -2703,11 +2691,9 @@ declare const socialProviders: {
|
|
|
2703
2691
|
redirectURI: string;
|
|
2704
2692
|
display?: string | undefined;
|
|
2705
2693
|
loginHint?: string | undefined;
|
|
2694
|
+
idTokenNonce?: string | undefined;
|
|
2706
2695
|
additionalParams?: Record<string, string> | undefined;
|
|
2707
|
-
}): Promise<
|
|
2708
|
-
url: URL;
|
|
2709
|
-
requestedScopes: string[];
|
|
2710
|
-
}>;
|
|
2696
|
+
}): Promise<URL>;
|
|
2711
2697
|
validateAuthorizationCode: ({
|
|
2712
2698
|
code,
|
|
2713
2699
|
codeVerifier,
|
|
@@ -2720,6 +2706,7 @@ declare const socialProviders: {
|
|
|
2720
2706
|
}) => Promise<OAuth2Tokens>;
|
|
2721
2707
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2722
2708
|
getUserInfo(token: OAuth2Tokens & {
|
|
2709
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2723
2710
|
user?: {
|
|
2724
2711
|
name?: {
|
|
2725
2712
|
firstName?: string;
|
|
@@ -2743,7 +2730,6 @@ declare const socialProviders: {
|
|
|
2743
2730
|
github: (options: GithubOptions) => {
|
|
2744
2731
|
id: "github";
|
|
2745
2732
|
name: string;
|
|
2746
|
-
callbackPath: string;
|
|
2747
2733
|
createAuthorizationURL({
|
|
2748
2734
|
state,
|
|
2749
2735
|
scopes,
|
|
@@ -2758,11 +2744,9 @@ declare const socialProviders: {
|
|
|
2758
2744
|
redirectURI: string;
|
|
2759
2745
|
display?: string | undefined;
|
|
2760
2746
|
loginHint?: string | undefined;
|
|
2747
|
+
idTokenNonce?: string | undefined;
|
|
2761
2748
|
additionalParams?: Record<string, string> | undefined;
|
|
2762
|
-
}): Promise<
|
|
2763
|
-
url: URL;
|
|
2764
|
-
requestedScopes: string[];
|
|
2765
|
-
}>;
|
|
2749
|
+
}): Promise<URL>;
|
|
2766
2750
|
validateAuthorizationCode: ({
|
|
2767
2751
|
code,
|
|
2768
2752
|
codeVerifier,
|
|
@@ -2775,6 +2759,7 @@ declare const socialProviders: {
|
|
|
2775
2759
|
}) => Promise<OAuth2Tokens | null>;
|
|
2776
2760
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2777
2761
|
getUserInfo(token: OAuth2Tokens & {
|
|
2762
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2778
2763
|
user?: {
|
|
2779
2764
|
name?: {
|
|
2780
2765
|
firstName?: string;
|
|
@@ -2798,7 +2783,6 @@ declare const socialProviders: {
|
|
|
2798
2783
|
microsoft: (options: MicrosoftOptions) => {
|
|
2799
2784
|
id: "microsoft";
|
|
2800
2785
|
name: string;
|
|
2801
|
-
callbackPath: string;
|
|
2802
2786
|
createAuthorizationURL(data: {
|
|
2803
2787
|
state: string;
|
|
2804
2788
|
codeVerifier: string;
|
|
@@ -2806,11 +2790,9 @@ declare const socialProviders: {
|
|
|
2806
2790
|
redirectURI: string;
|
|
2807
2791
|
display?: string | undefined;
|
|
2808
2792
|
loginHint?: string | undefined;
|
|
2793
|
+
idTokenNonce?: string | undefined;
|
|
2809
2794
|
additionalParams?: Record<string, string> | undefined;
|
|
2810
|
-
}): Promise<
|
|
2811
|
-
url: URL;
|
|
2812
|
-
requestedScopes: string[];
|
|
2813
|
-
}>;
|
|
2795
|
+
}): Promise<URL>;
|
|
2814
2796
|
validateAuthorizationCode({
|
|
2815
2797
|
code,
|
|
2816
2798
|
codeVerifier,
|
|
@@ -2829,6 +2811,7 @@ declare const socialProviders: {
|
|
|
2829
2811
|
verifyClaims: (claims: Record<string, unknown>) => boolean;
|
|
2830
2812
|
};
|
|
2831
2813
|
getUserInfo(token: OAuth2Tokens & {
|
|
2814
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2832
2815
|
user?: {
|
|
2833
2816
|
name?: {
|
|
2834
2817
|
firstName?: string;
|
|
@@ -2853,8 +2836,6 @@ declare const socialProviders: {
|
|
|
2853
2836
|
google: (options: GoogleOptions) => {
|
|
2854
2837
|
id: "google";
|
|
2855
2838
|
name: string;
|
|
2856
|
-
callbackPath: string;
|
|
2857
|
-
grantAuthority: "full-grant" | "projection";
|
|
2858
2839
|
createAuthorizationURL({
|
|
2859
2840
|
state,
|
|
2860
2841
|
scopes,
|
|
@@ -2870,11 +2851,9 @@ declare const socialProviders: {
|
|
|
2870
2851
|
redirectURI: string;
|
|
2871
2852
|
display?: string | undefined;
|
|
2872
2853
|
loginHint?: string | undefined;
|
|
2854
|
+
idTokenNonce?: string | undefined;
|
|
2873
2855
|
additionalParams?: Record<string, string> | undefined;
|
|
2874
|
-
}): Promise<
|
|
2875
|
-
url: URL;
|
|
2876
|
-
requestedScopes: string[];
|
|
2877
|
-
}>;
|
|
2856
|
+
}): Promise<URL>;
|
|
2878
2857
|
validateAuthorizationCode: ({
|
|
2879
2858
|
code,
|
|
2880
2859
|
codeVerifier,
|
|
@@ -2894,6 +2873,7 @@ declare const socialProviders: {
|
|
|
2894
2873
|
verifyClaims: ((claims: Record<string, unknown>) => boolean) | undefined;
|
|
2895
2874
|
};
|
|
2896
2875
|
getUserInfo(token: OAuth2Tokens & {
|
|
2876
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2897
2877
|
user?: {
|
|
2898
2878
|
name?: {
|
|
2899
2879
|
firstName?: string;
|
|
@@ -2917,7 +2897,6 @@ declare const socialProviders: {
|
|
|
2917
2897
|
huggingface: (options: HuggingFaceOptions) => {
|
|
2918
2898
|
id: "huggingface";
|
|
2919
2899
|
name: string;
|
|
2920
|
-
callbackPath: string;
|
|
2921
2900
|
createAuthorizationURL({
|
|
2922
2901
|
state,
|
|
2923
2902
|
scopes,
|
|
@@ -2931,11 +2910,9 @@ declare const socialProviders: {
|
|
|
2931
2910
|
redirectURI: string;
|
|
2932
2911
|
display?: string | undefined;
|
|
2933
2912
|
loginHint?: string | undefined;
|
|
2913
|
+
idTokenNonce?: string | undefined;
|
|
2934
2914
|
additionalParams?: Record<string, string> | undefined;
|
|
2935
|
-
}): Promise<
|
|
2936
|
-
url: URL;
|
|
2937
|
-
requestedScopes: string[];
|
|
2938
|
-
}>;
|
|
2915
|
+
}): Promise<URL>;
|
|
2939
2916
|
validateAuthorizationCode: ({
|
|
2940
2917
|
code,
|
|
2941
2918
|
codeVerifier,
|
|
@@ -2948,6 +2925,7 @@ declare const socialProviders: {
|
|
|
2948
2925
|
}) => Promise<OAuth2Tokens>;
|
|
2949
2926
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2950
2927
|
getUserInfo(token: OAuth2Tokens & {
|
|
2928
|
+
expectedIdTokenNonce?: string | undefined;
|
|
2951
2929
|
user?: {
|
|
2952
2930
|
name?: {
|
|
2953
2931
|
firstName?: string;
|
|
@@ -2971,7 +2949,6 @@ declare const socialProviders: {
|
|
|
2971
2949
|
slack: (options: SlackOptions) => {
|
|
2972
2950
|
id: "slack";
|
|
2973
2951
|
name: string;
|
|
2974
|
-
callbackPath: string;
|
|
2975
2952
|
createAuthorizationURL({
|
|
2976
2953
|
state,
|
|
2977
2954
|
scopes,
|
|
@@ -2984,11 +2961,9 @@ declare const socialProviders: {
|
|
|
2984
2961
|
redirectURI: string;
|
|
2985
2962
|
display?: string | undefined;
|
|
2986
2963
|
loginHint?: string | undefined;
|
|
2964
|
+
idTokenNonce?: string | undefined;
|
|
2987
2965
|
additionalParams?: Record<string, string> | undefined;
|
|
2988
|
-
}): Promise<
|
|
2989
|
-
url: URL;
|
|
2990
|
-
requestedScopes: string[];
|
|
2991
|
-
}>;
|
|
2966
|
+
}): Promise<URL>;
|
|
2992
2967
|
validateAuthorizationCode: ({
|
|
2993
2968
|
code,
|
|
2994
2969
|
redirectURI
|
|
@@ -3000,6 +2975,7 @@ declare const socialProviders: {
|
|
|
3000
2975
|
}) => Promise<OAuth2Tokens>;
|
|
3001
2976
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3002
2977
|
getUserInfo(token: OAuth2Tokens & {
|
|
2978
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3003
2979
|
user?: {
|
|
3004
2980
|
name?: {
|
|
3005
2981
|
firstName?: string;
|
|
@@ -3023,7 +2999,6 @@ declare const socialProviders: {
|
|
|
3023
2999
|
spotify: (options: SpotifyOptions) => {
|
|
3024
3000
|
id: "spotify";
|
|
3025
3001
|
name: string;
|
|
3026
|
-
callbackPath: string;
|
|
3027
3002
|
createAuthorizationURL({
|
|
3028
3003
|
state,
|
|
3029
3004
|
scopes,
|
|
@@ -3037,11 +3012,9 @@ declare const socialProviders: {
|
|
|
3037
3012
|
redirectURI: string;
|
|
3038
3013
|
display?: string | undefined;
|
|
3039
3014
|
loginHint?: string | undefined;
|
|
3015
|
+
idTokenNonce?: string | undefined;
|
|
3040
3016
|
additionalParams?: Record<string, string> | undefined;
|
|
3041
|
-
}): Promise<
|
|
3042
|
-
url: URL;
|
|
3043
|
-
requestedScopes: string[];
|
|
3044
|
-
}>;
|
|
3017
|
+
}): Promise<URL>;
|
|
3045
3018
|
validateAuthorizationCode: ({
|
|
3046
3019
|
code,
|
|
3047
3020
|
codeVerifier,
|
|
@@ -3054,6 +3027,7 @@ declare const socialProviders: {
|
|
|
3054
3027
|
}) => Promise<OAuth2Tokens>;
|
|
3055
3028
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3056
3029
|
getUserInfo(token: OAuth2Tokens & {
|
|
3030
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3057
3031
|
user?: {
|
|
3058
3032
|
name?: {
|
|
3059
3033
|
firstName?: string;
|
|
@@ -3077,7 +3051,6 @@ declare const socialProviders: {
|
|
|
3077
3051
|
twitch: (options: TwitchOptions) => {
|
|
3078
3052
|
id: "twitch";
|
|
3079
3053
|
name: string;
|
|
3080
|
-
callbackPath: string;
|
|
3081
3054
|
createAuthorizationURL({
|
|
3082
3055
|
state,
|
|
3083
3056
|
scopes,
|
|
@@ -3090,11 +3063,9 @@ declare const socialProviders: {
|
|
|
3090
3063
|
redirectURI: string;
|
|
3091
3064
|
display?: string | undefined;
|
|
3092
3065
|
loginHint?: string | undefined;
|
|
3066
|
+
idTokenNonce?: string | undefined;
|
|
3093
3067
|
additionalParams?: Record<string, string> | undefined;
|
|
3094
|
-
}): Promise<
|
|
3095
|
-
url: URL;
|
|
3096
|
-
requestedScopes: string[];
|
|
3097
|
-
}>;
|
|
3068
|
+
}): Promise<URL>;
|
|
3098
3069
|
validateAuthorizationCode: ({
|
|
3099
3070
|
code,
|
|
3100
3071
|
redirectURI
|
|
@@ -3106,6 +3077,7 @@ declare const socialProviders: {
|
|
|
3106
3077
|
}) => Promise<OAuth2Tokens>;
|
|
3107
3078
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3108
3079
|
getUserInfo(token: OAuth2Tokens & {
|
|
3080
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3109
3081
|
user?: {
|
|
3110
3082
|
name?: {
|
|
3111
3083
|
firstName?: string;
|
|
@@ -3129,7 +3101,6 @@ declare const socialProviders: {
|
|
|
3129
3101
|
twitter: (options: TwitterOption) => {
|
|
3130
3102
|
id: "twitter";
|
|
3131
3103
|
name: string;
|
|
3132
|
-
callbackPath: string;
|
|
3133
3104
|
createAuthorizationURL(data: {
|
|
3134
3105
|
state: string;
|
|
3135
3106
|
codeVerifier: string;
|
|
@@ -3137,11 +3108,9 @@ declare const socialProviders: {
|
|
|
3137
3108
|
redirectURI: string;
|
|
3138
3109
|
display?: string | undefined;
|
|
3139
3110
|
loginHint?: string | undefined;
|
|
3111
|
+
idTokenNonce?: string | undefined;
|
|
3140
3112
|
additionalParams?: Record<string, string> | undefined;
|
|
3141
|
-
}): Promise<
|
|
3142
|
-
url: URL;
|
|
3143
|
-
requestedScopes: string[];
|
|
3144
|
-
}>;
|
|
3113
|
+
}): Promise<URL>;
|
|
3145
3114
|
validateAuthorizationCode: ({
|
|
3146
3115
|
code,
|
|
3147
3116
|
codeVerifier,
|
|
@@ -3154,6 +3123,7 @@ declare const socialProviders: {
|
|
|
3154
3123
|
}) => Promise<OAuth2Tokens>;
|
|
3155
3124
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3156
3125
|
getUserInfo(token: OAuth2Tokens & {
|
|
3126
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3157
3127
|
user?: {
|
|
3158
3128
|
name?: {
|
|
3159
3129
|
firstName?: string;
|
|
@@ -3177,7 +3147,6 @@ declare const socialProviders: {
|
|
|
3177
3147
|
dropbox: (options: DropboxOptions) => {
|
|
3178
3148
|
id: "dropbox";
|
|
3179
3149
|
name: string;
|
|
3180
|
-
callbackPath: string;
|
|
3181
3150
|
createAuthorizationURL: ({
|
|
3182
3151
|
state,
|
|
3183
3152
|
scopes,
|
|
@@ -3191,11 +3160,9 @@ declare const socialProviders: {
|
|
|
3191
3160
|
redirectURI: string;
|
|
3192
3161
|
display?: string | undefined;
|
|
3193
3162
|
loginHint?: string | undefined;
|
|
3163
|
+
idTokenNonce?: string | undefined;
|
|
3194
3164
|
additionalParams?: Record<string, string> | undefined;
|
|
3195
|
-
}) => Promise<
|
|
3196
|
-
url: URL;
|
|
3197
|
-
requestedScopes: string[];
|
|
3198
|
-
}>;
|
|
3165
|
+
}) => Promise<URL>;
|
|
3199
3166
|
validateAuthorizationCode: ({
|
|
3200
3167
|
code,
|
|
3201
3168
|
codeVerifier,
|
|
@@ -3208,6 +3175,7 @@ declare const socialProviders: {
|
|
|
3208
3175
|
}) => Promise<OAuth2Tokens>;
|
|
3209
3176
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3210
3177
|
getUserInfo(token: OAuth2Tokens & {
|
|
3178
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3211
3179
|
user?: {
|
|
3212
3180
|
name?: {
|
|
3213
3181
|
firstName?: string;
|
|
@@ -3231,7 +3199,6 @@ declare const socialProviders: {
|
|
|
3231
3199
|
kick: (options: KickOptions) => {
|
|
3232
3200
|
id: "kick";
|
|
3233
3201
|
name: string;
|
|
3234
|
-
callbackPath: string;
|
|
3235
3202
|
createAuthorizationURL({
|
|
3236
3203
|
state,
|
|
3237
3204
|
scopes,
|
|
@@ -3245,11 +3212,9 @@ declare const socialProviders: {
|
|
|
3245
3212
|
redirectURI: string;
|
|
3246
3213
|
display?: string | undefined;
|
|
3247
3214
|
loginHint?: string | undefined;
|
|
3215
|
+
idTokenNonce?: string | undefined;
|
|
3248
3216
|
additionalParams?: Record<string, string> | undefined;
|
|
3249
|
-
}): Promise<
|
|
3250
|
-
url: URL;
|
|
3251
|
-
requestedScopes: string[];
|
|
3252
|
-
}>;
|
|
3217
|
+
}): Promise<URL>;
|
|
3253
3218
|
validateAuthorizationCode({
|
|
3254
3219
|
code,
|
|
3255
3220
|
redirectURI,
|
|
@@ -3262,6 +3227,7 @@ declare const socialProviders: {
|
|
|
3262
3227
|
}): Promise<OAuth2Tokens>;
|
|
3263
3228
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3264
3229
|
getUserInfo(token: OAuth2Tokens & {
|
|
3230
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3265
3231
|
user?: {
|
|
3266
3232
|
name?: {
|
|
3267
3233
|
firstName?: string;
|
|
@@ -3285,7 +3251,6 @@ declare const socialProviders: {
|
|
|
3285
3251
|
linear: (options: LinearOptions) => {
|
|
3286
3252
|
id: "linear";
|
|
3287
3253
|
name: string;
|
|
3288
|
-
callbackPath: string;
|
|
3289
3254
|
createAuthorizationURL({
|
|
3290
3255
|
state,
|
|
3291
3256
|
scopes,
|
|
@@ -3299,11 +3264,9 @@ declare const socialProviders: {
|
|
|
3299
3264
|
redirectURI: string;
|
|
3300
3265
|
display?: string | undefined;
|
|
3301
3266
|
loginHint?: string | undefined;
|
|
3267
|
+
idTokenNonce?: string | undefined;
|
|
3302
3268
|
additionalParams?: Record<string, string> | undefined;
|
|
3303
|
-
}): Promise<
|
|
3304
|
-
url: URL;
|
|
3305
|
-
requestedScopes: string[];
|
|
3306
|
-
}>;
|
|
3269
|
+
}): Promise<URL>;
|
|
3307
3270
|
validateAuthorizationCode: ({
|
|
3308
3271
|
code,
|
|
3309
3272
|
redirectURI
|
|
@@ -3315,6 +3278,7 @@ declare const socialProviders: {
|
|
|
3315
3278
|
}) => Promise<OAuth2Tokens>;
|
|
3316
3279
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3317
3280
|
getUserInfo(token: OAuth2Tokens & {
|
|
3281
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3318
3282
|
user?: {
|
|
3319
3283
|
name?: {
|
|
3320
3284
|
firstName?: string;
|
|
@@ -3338,7 +3302,6 @@ declare const socialProviders: {
|
|
|
3338
3302
|
linkedin: (options: LinkedInOptions) => {
|
|
3339
3303
|
id: "linkedin";
|
|
3340
3304
|
name: string;
|
|
3341
|
-
callbackPath: string;
|
|
3342
3305
|
createAuthorizationURL: ({
|
|
3343
3306
|
state,
|
|
3344
3307
|
scopes,
|
|
@@ -3352,11 +3315,9 @@ declare const socialProviders: {
|
|
|
3352
3315
|
redirectURI: string;
|
|
3353
3316
|
display?: string | undefined;
|
|
3354
3317
|
loginHint?: string | undefined;
|
|
3318
|
+
idTokenNonce?: string | undefined;
|
|
3355
3319
|
additionalParams?: Record<string, string> | undefined;
|
|
3356
|
-
}) => Promise<
|
|
3357
|
-
url: URL;
|
|
3358
|
-
requestedScopes: string[];
|
|
3359
|
-
}>;
|
|
3320
|
+
}) => Promise<URL>;
|
|
3360
3321
|
validateAuthorizationCode: ({
|
|
3361
3322
|
code,
|
|
3362
3323
|
redirectURI
|
|
@@ -3368,6 +3329,7 @@ declare const socialProviders: {
|
|
|
3368
3329
|
}) => Promise<OAuth2Tokens>;
|
|
3369
3330
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3370
3331
|
getUserInfo(token: OAuth2Tokens & {
|
|
3332
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3371
3333
|
user?: {
|
|
3372
3334
|
name?: {
|
|
3373
3335
|
firstName?: string;
|
|
@@ -3391,7 +3353,6 @@ declare const socialProviders: {
|
|
|
3391
3353
|
gitlab: (options: GitlabOptions) => {
|
|
3392
3354
|
id: "gitlab";
|
|
3393
3355
|
name: string;
|
|
3394
|
-
callbackPath: string;
|
|
3395
3356
|
createAuthorizationURL: ({
|
|
3396
3357
|
state,
|
|
3397
3358
|
scopes,
|
|
@@ -3406,11 +3367,9 @@ declare const socialProviders: {
|
|
|
3406
3367
|
redirectURI: string;
|
|
3407
3368
|
display?: string | undefined;
|
|
3408
3369
|
loginHint?: string | undefined;
|
|
3370
|
+
idTokenNonce?: string | undefined;
|
|
3409
3371
|
additionalParams?: Record<string, string> | undefined;
|
|
3410
|
-
}) => Promise<
|
|
3411
|
-
url: URL;
|
|
3412
|
-
requestedScopes: string[];
|
|
3413
|
-
}>;
|
|
3372
|
+
}) => Promise<URL>;
|
|
3414
3373
|
validateAuthorizationCode: ({
|
|
3415
3374
|
code,
|
|
3416
3375
|
redirectURI,
|
|
@@ -3423,6 +3382,7 @@ declare const socialProviders: {
|
|
|
3423
3382
|
}) => Promise<OAuth2Tokens>;
|
|
3424
3383
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3425
3384
|
getUserInfo(token: OAuth2Tokens & {
|
|
3385
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3426
3386
|
user?: {
|
|
3427
3387
|
name?: {
|
|
3428
3388
|
firstName?: string;
|
|
@@ -3467,7 +3427,6 @@ declare const socialProviders: {
|
|
|
3467
3427
|
tiktok: (options: TiktokOptions) => {
|
|
3468
3428
|
id: "tiktok";
|
|
3469
3429
|
name: string;
|
|
3470
|
-
callbackPath: string;
|
|
3471
3430
|
createAuthorizationURL({
|
|
3472
3431
|
state,
|
|
3473
3432
|
scopes,
|
|
@@ -3480,11 +3439,9 @@ declare const socialProviders: {
|
|
|
3480
3439
|
redirectURI: string;
|
|
3481
3440
|
display?: string | undefined;
|
|
3482
3441
|
loginHint?: string | undefined;
|
|
3442
|
+
idTokenNonce?: string | undefined;
|
|
3483
3443
|
additionalParams?: Record<string, string> | undefined;
|
|
3484
|
-
}):
|
|
3485
|
-
url: URL;
|
|
3486
|
-
requestedScopes: string[];
|
|
3487
|
-
};
|
|
3444
|
+
}): URL;
|
|
3488
3445
|
validateAuthorizationCode: ({
|
|
3489
3446
|
code,
|
|
3490
3447
|
redirectURI
|
|
@@ -3496,6 +3453,7 @@ declare const socialProviders: {
|
|
|
3496
3453
|
}) => Promise<OAuth2Tokens>;
|
|
3497
3454
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3498
3455
|
getUserInfo(token: OAuth2Tokens & {
|
|
3456
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3499
3457
|
user?: {
|
|
3500
3458
|
name?: {
|
|
3501
3459
|
firstName?: string;
|
|
@@ -3519,7 +3477,6 @@ declare const socialProviders: {
|
|
|
3519
3477
|
reddit: (options: RedditOptions) => {
|
|
3520
3478
|
id: "reddit";
|
|
3521
3479
|
name: string;
|
|
3522
|
-
callbackPath: string;
|
|
3523
3480
|
createAuthorizationURL({
|
|
3524
3481
|
state,
|
|
3525
3482
|
scopes,
|
|
@@ -3532,11 +3489,9 @@ declare const socialProviders: {
|
|
|
3532
3489
|
redirectURI: string;
|
|
3533
3490
|
display?: string | undefined;
|
|
3534
3491
|
loginHint?: string | undefined;
|
|
3492
|
+
idTokenNonce?: string | undefined;
|
|
3535
3493
|
additionalParams?: Record<string, string> | undefined;
|
|
3536
|
-
}): Promise<
|
|
3537
|
-
url: URL;
|
|
3538
|
-
requestedScopes: string[];
|
|
3539
|
-
}>;
|
|
3494
|
+
}): Promise<URL>;
|
|
3540
3495
|
validateAuthorizationCode: ({
|
|
3541
3496
|
code,
|
|
3542
3497
|
redirectURI
|
|
@@ -3548,6 +3503,7 @@ declare const socialProviders: {
|
|
|
3548
3503
|
}) => Promise<OAuth2Tokens>;
|
|
3549
3504
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3550
3505
|
getUserInfo(token: OAuth2Tokens & {
|
|
3506
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3551
3507
|
user?: {
|
|
3552
3508
|
name?: {
|
|
3553
3509
|
firstName?: string;
|
|
@@ -3571,7 +3527,6 @@ declare const socialProviders: {
|
|
|
3571
3527
|
roblox: (options: RobloxOptions) => {
|
|
3572
3528
|
id: "roblox";
|
|
3573
3529
|
name: string;
|
|
3574
|
-
callbackPath: string;
|
|
3575
3530
|
createAuthorizationURL({
|
|
3576
3531
|
state,
|
|
3577
3532
|
scopes,
|
|
@@ -3584,11 +3539,9 @@ declare const socialProviders: {
|
|
|
3584
3539
|
redirectURI: string;
|
|
3585
3540
|
display?: string | undefined;
|
|
3586
3541
|
loginHint?: string | undefined;
|
|
3542
|
+
idTokenNonce?: string | undefined;
|
|
3587
3543
|
additionalParams?: Record<string, string> | undefined;
|
|
3588
|
-
}): Promise<
|
|
3589
|
-
url: URL;
|
|
3590
|
-
requestedScopes: string[];
|
|
3591
|
-
}>;
|
|
3544
|
+
}): Promise<URL>;
|
|
3592
3545
|
validateAuthorizationCode: ({
|
|
3593
3546
|
code,
|
|
3594
3547
|
redirectURI
|
|
@@ -3600,6 +3553,7 @@ declare const socialProviders: {
|
|
|
3600
3553
|
}) => Promise<OAuth2Tokens>;
|
|
3601
3554
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3602
3555
|
getUserInfo(token: OAuth2Tokens & {
|
|
3556
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3603
3557
|
user?: {
|
|
3604
3558
|
name?: {
|
|
3605
3559
|
firstName?: string;
|
|
@@ -3623,7 +3577,6 @@ declare const socialProviders: {
|
|
|
3623
3577
|
salesforce: (options: SalesforceOptions) => {
|
|
3624
3578
|
id: "salesforce";
|
|
3625
3579
|
name: string;
|
|
3626
|
-
callbackPath: string;
|
|
3627
3580
|
createAuthorizationURL({
|
|
3628
3581
|
state,
|
|
3629
3582
|
scopes,
|
|
@@ -3637,11 +3590,9 @@ declare const socialProviders: {
|
|
|
3637
3590
|
redirectURI: string;
|
|
3638
3591
|
display?: string | undefined;
|
|
3639
3592
|
loginHint?: string | undefined;
|
|
3593
|
+
idTokenNonce?: string | undefined;
|
|
3640
3594
|
additionalParams?: Record<string, string> | undefined;
|
|
3641
|
-
}): Promise<
|
|
3642
|
-
url: URL;
|
|
3643
|
-
requestedScopes: string[];
|
|
3644
|
-
}>;
|
|
3595
|
+
}): Promise<URL>;
|
|
3645
3596
|
validateAuthorizationCode: ({
|
|
3646
3597
|
code,
|
|
3647
3598
|
codeVerifier,
|
|
@@ -3654,6 +3605,7 @@ declare const socialProviders: {
|
|
|
3654
3605
|
}) => Promise<OAuth2Tokens>;
|
|
3655
3606
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3656
3607
|
getUserInfo(token: OAuth2Tokens & {
|
|
3608
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3657
3609
|
user?: {
|
|
3658
3610
|
name?: {
|
|
3659
3611
|
firstName?: string;
|
|
@@ -3677,7 +3629,6 @@ declare const socialProviders: {
|
|
|
3677
3629
|
vk: (options: VkOption) => {
|
|
3678
3630
|
id: "vk";
|
|
3679
3631
|
name: string;
|
|
3680
|
-
callbackPath: string;
|
|
3681
3632
|
createAuthorizationURL({
|
|
3682
3633
|
state,
|
|
3683
3634
|
scopes,
|
|
@@ -3691,11 +3642,9 @@ declare const socialProviders: {
|
|
|
3691
3642
|
redirectURI: string;
|
|
3692
3643
|
display?: string | undefined;
|
|
3693
3644
|
loginHint?: string | undefined;
|
|
3645
|
+
idTokenNonce?: string | undefined;
|
|
3694
3646
|
additionalParams?: Record<string, string> | undefined;
|
|
3695
|
-
}): Promise<
|
|
3696
|
-
url: URL;
|
|
3697
|
-
requestedScopes: string[];
|
|
3698
|
-
}>;
|
|
3647
|
+
}): Promise<URL>;
|
|
3699
3648
|
validateAuthorizationCode: ({
|
|
3700
3649
|
code,
|
|
3701
3650
|
codeVerifier,
|
|
@@ -3709,6 +3658,7 @@ declare const socialProviders: {
|
|
|
3709
3658
|
}) => Promise<OAuth2Tokens>;
|
|
3710
3659
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3711
3660
|
getUserInfo(data: OAuth2Tokens & {
|
|
3661
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3712
3662
|
user?: {
|
|
3713
3663
|
name?: {
|
|
3714
3664
|
firstName?: string;
|
|
@@ -3732,10 +3682,8 @@ declare const socialProviders: {
|
|
|
3732
3682
|
zoom: (userOptions: ZoomOptions) => {
|
|
3733
3683
|
id: "zoom";
|
|
3734
3684
|
name: string;
|
|
3735
|
-
callbackPath: string;
|
|
3736
3685
|
createAuthorizationURL: ({
|
|
3737
3686
|
state,
|
|
3738
|
-
scopes,
|
|
3739
3687
|
redirectURI,
|
|
3740
3688
|
codeVerifier,
|
|
3741
3689
|
additionalParams
|
|
@@ -3746,11 +3694,9 @@ declare const socialProviders: {
|
|
|
3746
3694
|
redirectURI: string;
|
|
3747
3695
|
display?: string | undefined;
|
|
3748
3696
|
loginHint?: string | undefined;
|
|
3697
|
+
idTokenNonce?: string | undefined;
|
|
3749
3698
|
additionalParams?: Record<string, string> | undefined;
|
|
3750
|
-
}) => Promise<
|
|
3751
|
-
url: URL;
|
|
3752
|
-
requestedScopes: string[];
|
|
3753
|
-
}>;
|
|
3699
|
+
}) => Promise<URL>;
|
|
3754
3700
|
validateAuthorizationCode: ({
|
|
3755
3701
|
code,
|
|
3756
3702
|
redirectURI,
|
|
@@ -3763,6 +3709,7 @@ declare const socialProviders: {
|
|
|
3763
3709
|
}) => Promise<OAuth2Tokens>;
|
|
3764
3710
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3765
3711
|
getUserInfo(token: OAuth2Tokens & {
|
|
3712
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3766
3713
|
user?: {
|
|
3767
3714
|
name?: {
|
|
3768
3715
|
firstName?: string;
|
|
@@ -3785,7 +3732,6 @@ declare const socialProviders: {
|
|
|
3785
3732
|
notion: (options: NotionOptions) => {
|
|
3786
3733
|
id: "notion";
|
|
3787
3734
|
name: string;
|
|
3788
|
-
callbackPath: string;
|
|
3789
3735
|
createAuthorizationURL({
|
|
3790
3736
|
state,
|
|
3791
3737
|
scopes,
|
|
@@ -3799,11 +3745,9 @@ declare const socialProviders: {
|
|
|
3799
3745
|
redirectURI: string;
|
|
3800
3746
|
display?: string | undefined;
|
|
3801
3747
|
loginHint?: string | undefined;
|
|
3748
|
+
idTokenNonce?: string | undefined;
|
|
3802
3749
|
additionalParams?: Record<string, string> | undefined;
|
|
3803
|
-
}): Promise<
|
|
3804
|
-
url: URL;
|
|
3805
|
-
requestedScopes: string[];
|
|
3806
|
-
}>;
|
|
3750
|
+
}): Promise<URL>;
|
|
3807
3751
|
validateAuthorizationCode: ({
|
|
3808
3752
|
code,
|
|
3809
3753
|
redirectURI
|
|
@@ -3815,6 +3759,7 @@ declare const socialProviders: {
|
|
|
3815
3759
|
}) => Promise<OAuth2Tokens>;
|
|
3816
3760
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3817
3761
|
getUserInfo(token: OAuth2Tokens & {
|
|
3762
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3818
3763
|
user?: {
|
|
3819
3764
|
name?: {
|
|
3820
3765
|
firstName?: string;
|
|
@@ -3838,7 +3783,6 @@ declare const socialProviders: {
|
|
|
3838
3783
|
kakao: (options: KakaoOptions) => {
|
|
3839
3784
|
id: "kakao";
|
|
3840
3785
|
name: string;
|
|
3841
|
-
callbackPath: string;
|
|
3842
3786
|
createAuthorizationURL({
|
|
3843
3787
|
state,
|
|
3844
3788
|
scopes,
|
|
@@ -3851,11 +3795,9 @@ declare const socialProviders: {
|
|
|
3851
3795
|
redirectURI: string;
|
|
3852
3796
|
display?: string | undefined;
|
|
3853
3797
|
loginHint?: string | undefined;
|
|
3798
|
+
idTokenNonce?: string | undefined;
|
|
3854
3799
|
additionalParams?: Record<string, string> | undefined;
|
|
3855
|
-
}): Promise<
|
|
3856
|
-
url: URL;
|
|
3857
|
-
requestedScopes: string[];
|
|
3858
|
-
}>;
|
|
3800
|
+
}): Promise<URL>;
|
|
3859
3801
|
validateAuthorizationCode: ({
|
|
3860
3802
|
code,
|
|
3861
3803
|
redirectURI
|
|
@@ -3867,6 +3809,7 @@ declare const socialProviders: {
|
|
|
3867
3809
|
}) => Promise<OAuth2Tokens>;
|
|
3868
3810
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3869
3811
|
getUserInfo(token: OAuth2Tokens & {
|
|
3812
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3870
3813
|
user?: {
|
|
3871
3814
|
name?: {
|
|
3872
3815
|
firstName?: string;
|
|
@@ -3911,7 +3854,6 @@ declare const socialProviders: {
|
|
|
3911
3854
|
naver: (options: NaverOptions) => {
|
|
3912
3855
|
id: "naver";
|
|
3913
3856
|
name: string;
|
|
3914
|
-
callbackPath: string;
|
|
3915
3857
|
createAuthorizationURL({
|
|
3916
3858
|
state,
|
|
3917
3859
|
scopes,
|
|
@@ -3924,11 +3866,9 @@ declare const socialProviders: {
|
|
|
3924
3866
|
redirectURI: string;
|
|
3925
3867
|
display?: string | undefined;
|
|
3926
3868
|
loginHint?: string | undefined;
|
|
3869
|
+
idTokenNonce?: string | undefined;
|
|
3927
3870
|
additionalParams?: Record<string, string> | undefined;
|
|
3928
|
-
}): Promise<
|
|
3929
|
-
url: URL;
|
|
3930
|
-
requestedScopes: string[];
|
|
3931
|
-
}>;
|
|
3871
|
+
}): Promise<URL>;
|
|
3932
3872
|
validateAuthorizationCode: ({
|
|
3933
3873
|
code,
|
|
3934
3874
|
redirectURI
|
|
@@ -3940,6 +3880,7 @@ declare const socialProviders: {
|
|
|
3940
3880
|
}) => Promise<OAuth2Tokens>;
|
|
3941
3881
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3942
3882
|
getUserInfo(token: OAuth2Tokens & {
|
|
3883
|
+
expectedIdTokenNonce?: string | undefined;
|
|
3943
3884
|
user?: {
|
|
3944
3885
|
name?: {
|
|
3945
3886
|
firstName?: string;
|
|
@@ -3984,7 +3925,6 @@ declare const socialProviders: {
|
|
|
3984
3925
|
line: (options: LineOptions) => {
|
|
3985
3926
|
id: "line";
|
|
3986
3927
|
name: string;
|
|
3987
|
-
callbackPath: string;
|
|
3988
3928
|
createAuthorizationURL({
|
|
3989
3929
|
state,
|
|
3990
3930
|
scopes,
|
|
@@ -3999,11 +3939,9 @@ declare const socialProviders: {
|
|
|
3999
3939
|
redirectURI: string;
|
|
4000
3940
|
display?: string | undefined;
|
|
4001
3941
|
loginHint?: string | undefined;
|
|
3942
|
+
idTokenNonce?: string | undefined;
|
|
4002
3943
|
additionalParams?: Record<string, string> | undefined;
|
|
4003
|
-
}): Promise<
|
|
4004
|
-
url: URL;
|
|
4005
|
-
requestedScopes: string[];
|
|
4006
|
-
}>;
|
|
3944
|
+
}): Promise<URL>;
|
|
4007
3945
|
validateAuthorizationCode: ({
|
|
4008
3946
|
code,
|
|
4009
3947
|
codeVerifier,
|
|
@@ -4019,6 +3957,7 @@ declare const socialProviders: {
|
|
|
4019
3957
|
verify: (token: string, nonce: string | undefined) => Promise<boolean>;
|
|
4020
3958
|
};
|
|
4021
3959
|
getUserInfo(token: OAuth2Tokens & {
|
|
3960
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4022
3961
|
user?: {
|
|
4023
3962
|
name?: {
|
|
4024
3963
|
firstName?: string;
|
|
@@ -4063,7 +4002,6 @@ declare const socialProviders: {
|
|
|
4063
4002
|
paybin: (options: PaybinOptions) => {
|
|
4064
4003
|
id: "paybin";
|
|
4065
4004
|
name: string;
|
|
4066
|
-
callbackPath: string;
|
|
4067
4005
|
createAuthorizationURL({
|
|
4068
4006
|
state,
|
|
4069
4007
|
scopes,
|
|
@@ -4078,11 +4016,9 @@ declare const socialProviders: {
|
|
|
4078
4016
|
redirectURI: string;
|
|
4079
4017
|
display?: string | undefined;
|
|
4080
4018
|
loginHint?: string | undefined;
|
|
4019
|
+
idTokenNonce?: string | undefined;
|
|
4081
4020
|
additionalParams?: Record<string, string> | undefined;
|
|
4082
|
-
}): Promise<
|
|
4083
|
-
url: URL;
|
|
4084
|
-
requestedScopes: string[];
|
|
4085
|
-
}>;
|
|
4021
|
+
}): Promise<URL>;
|
|
4086
4022
|
validateAuthorizationCode: ({
|
|
4087
4023
|
code,
|
|
4088
4024
|
codeVerifier,
|
|
@@ -4095,6 +4031,7 @@ declare const socialProviders: {
|
|
|
4095
4031
|
}) => Promise<OAuth2Tokens>;
|
|
4096
4032
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
4097
4033
|
getUserInfo(token: OAuth2Tokens & {
|
|
4034
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4098
4035
|
user?: {
|
|
4099
4036
|
name?: {
|
|
4100
4037
|
firstName?: string;
|
|
@@ -4118,7 +4055,6 @@ declare const socialProviders: {
|
|
|
4118
4055
|
paypal: (options: PayPalOptions) => {
|
|
4119
4056
|
id: "paypal";
|
|
4120
4057
|
name: string;
|
|
4121
|
-
callbackPath: string;
|
|
4122
4058
|
createAuthorizationURL({
|
|
4123
4059
|
state,
|
|
4124
4060
|
codeVerifier,
|
|
@@ -4131,11 +4067,9 @@ declare const socialProviders: {
|
|
|
4131
4067
|
redirectURI: string;
|
|
4132
4068
|
display?: string | undefined;
|
|
4133
4069
|
loginHint?: string | undefined;
|
|
4070
|
+
idTokenNonce?: string | undefined;
|
|
4134
4071
|
additionalParams?: Record<string, string> | undefined;
|
|
4135
|
-
}): Promise<
|
|
4136
|
-
url: URL;
|
|
4137
|
-
requestedScopes: string[];
|
|
4138
|
-
}>;
|
|
4072
|
+
}): Promise<URL>;
|
|
4139
4073
|
validateAuthorizationCode: ({
|
|
4140
4074
|
code,
|
|
4141
4075
|
redirectURI
|
|
@@ -4156,6 +4090,7 @@ declare const socialProviders: {
|
|
|
4156
4090
|
accessTokenExpiresAt: Date | undefined;
|
|
4157
4091
|
}>);
|
|
4158
4092
|
getUserInfo(token: OAuth2Tokens & {
|
|
4093
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4159
4094
|
user?: {
|
|
4160
4095
|
name?: {
|
|
4161
4096
|
firstName?: string;
|
|
@@ -4200,7 +4135,6 @@ declare const socialProviders: {
|
|
|
4200
4135
|
polar: (options: PolarOptions) => {
|
|
4201
4136
|
id: "polar";
|
|
4202
4137
|
name: string;
|
|
4203
|
-
callbackPath: string;
|
|
4204
4138
|
createAuthorizationURL({
|
|
4205
4139
|
state,
|
|
4206
4140
|
scopes,
|
|
@@ -4214,11 +4148,9 @@ declare const socialProviders: {
|
|
|
4214
4148
|
redirectURI: string;
|
|
4215
4149
|
display?: string | undefined;
|
|
4216
4150
|
loginHint?: string | undefined;
|
|
4151
|
+
idTokenNonce?: string | undefined;
|
|
4217
4152
|
additionalParams?: Record<string, string> | undefined;
|
|
4218
|
-
}): Promise<
|
|
4219
|
-
url: URL;
|
|
4220
|
-
requestedScopes: string[];
|
|
4221
|
-
}>;
|
|
4153
|
+
}): Promise<URL>;
|
|
4222
4154
|
validateAuthorizationCode: ({
|
|
4223
4155
|
code,
|
|
4224
4156
|
codeVerifier,
|
|
@@ -4231,6 +4163,7 @@ declare const socialProviders: {
|
|
|
4231
4163
|
}) => Promise<OAuth2Tokens>;
|
|
4232
4164
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
4233
4165
|
getUserInfo(token: OAuth2Tokens & {
|
|
4166
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4234
4167
|
user?: {
|
|
4235
4168
|
name?: {
|
|
4236
4169
|
firstName?: string;
|
|
@@ -4254,7 +4187,6 @@ declare const socialProviders: {
|
|
|
4254
4187
|
railway: (options: RailwayOptions) => {
|
|
4255
4188
|
id: "railway";
|
|
4256
4189
|
name: string;
|
|
4257
|
-
callbackPath: string;
|
|
4258
4190
|
createAuthorizationURL({
|
|
4259
4191
|
state,
|
|
4260
4192
|
scopes,
|
|
@@ -4268,11 +4200,9 @@ declare const socialProviders: {
|
|
|
4268
4200
|
redirectURI: string;
|
|
4269
4201
|
display?: string | undefined;
|
|
4270
4202
|
loginHint?: string | undefined;
|
|
4203
|
+
idTokenNonce?: string | undefined;
|
|
4271
4204
|
additionalParams?: Record<string, string> | undefined;
|
|
4272
|
-
}): Promise<
|
|
4273
|
-
url: URL;
|
|
4274
|
-
requestedScopes: string[];
|
|
4275
|
-
}>;
|
|
4205
|
+
}): Promise<URL>;
|
|
4276
4206
|
validateAuthorizationCode: ({
|
|
4277
4207
|
code,
|
|
4278
4208
|
codeVerifier,
|
|
@@ -4285,6 +4215,7 @@ declare const socialProviders: {
|
|
|
4285
4215
|
}) => Promise<OAuth2Tokens>;
|
|
4286
4216
|
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
4287
4217
|
getUserInfo(token: OAuth2Tokens & {
|
|
4218
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4288
4219
|
user?: {
|
|
4289
4220
|
name?: {
|
|
4290
4221
|
firstName?: string;
|
|
@@ -4308,7 +4239,6 @@ declare const socialProviders: {
|
|
|
4308
4239
|
vercel: (options: VercelOptions) => {
|
|
4309
4240
|
id: "vercel";
|
|
4310
4241
|
name: string;
|
|
4311
|
-
callbackPath: string;
|
|
4312
4242
|
createAuthorizationURL({
|
|
4313
4243
|
state,
|
|
4314
4244
|
scopes,
|
|
@@ -4322,11 +4252,9 @@ declare const socialProviders: {
|
|
|
4322
4252
|
redirectURI: string;
|
|
4323
4253
|
display?: string | undefined;
|
|
4324
4254
|
loginHint?: string | undefined;
|
|
4255
|
+
idTokenNonce?: string | undefined;
|
|
4325
4256
|
additionalParams?: Record<string, string> | undefined;
|
|
4326
|
-
}): Promise<
|
|
4327
|
-
url: URL;
|
|
4328
|
-
requestedScopes: string[];
|
|
4329
|
-
}>;
|
|
4257
|
+
}): Promise<URL>;
|
|
4330
4258
|
validateAuthorizationCode: ({
|
|
4331
4259
|
code,
|
|
4332
4260
|
codeVerifier,
|
|
@@ -4338,6 +4266,7 @@ declare const socialProviders: {
|
|
|
4338
4266
|
deviceId?: string | undefined;
|
|
4339
4267
|
}) => Promise<OAuth2Tokens>;
|
|
4340
4268
|
getUserInfo(token: OAuth2Tokens & {
|
|
4269
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4341
4270
|
user?: {
|
|
4342
4271
|
name?: {
|
|
4343
4272
|
firstName?: string;
|
|
@@ -4361,7 +4290,6 @@ declare const socialProviders: {
|
|
|
4361
4290
|
wechat: (options: WeChatOptions) => {
|
|
4362
4291
|
id: "wechat";
|
|
4363
4292
|
name: string;
|
|
4364
|
-
callbackPath: string;
|
|
4365
4293
|
createAuthorizationURL({
|
|
4366
4294
|
state,
|
|
4367
4295
|
scopes,
|
|
@@ -4374,11 +4302,9 @@ declare const socialProviders: {
|
|
|
4374
4302
|
redirectURI: string;
|
|
4375
4303
|
display?: string | undefined;
|
|
4376
4304
|
loginHint?: string | undefined;
|
|
4305
|
+
idTokenNonce?: string | undefined;
|
|
4377
4306
|
additionalParams?: Record<string, string> | undefined;
|
|
4378
|
-
}):
|
|
4379
|
-
url: URL;
|
|
4380
|
-
requestedScopes: string[];
|
|
4381
|
-
};
|
|
4307
|
+
}): URL;
|
|
4382
4308
|
validateAuthorizationCode: ({
|
|
4383
4309
|
code
|
|
4384
4310
|
}: {
|
|
@@ -4403,6 +4329,7 @@ declare const socialProviders: {
|
|
|
4403
4329
|
scopes: string[];
|
|
4404
4330
|
}>);
|
|
4405
4331
|
getUserInfo(token: OAuth2Tokens & {
|
|
4332
|
+
expectedIdTokenNonce?: string | undefined;
|
|
4406
4333
|
user?: {
|
|
4407
4334
|
name?: {
|
|
4408
4335
|
firstName?: string;
|
|
@@ -4444,7 +4371,7 @@ declare const accountSchema: z.ZodObject<{
|
|
|
4444
4371
|
idToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4445
4372
|
accessTokenExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4446
4373
|
refreshTokenExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4447
|
-
|
|
4374
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4448
4375
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4449
4376
|
}, z.core.$strip>;
|
|
4450
4377
|
type BaseAccount = z.infer<typeof accountSchema>;
|
|
@@ -5330,6 +5257,10 @@ type GenericEndpointContext<Options extends BetterAuthOptions = BetterAuthOption
|
|
|
5330
5257
|
context: AuthContext<Options>;
|
|
5331
5258
|
};
|
|
5332
5259
|
interface InternalAdapter<_Options extends BetterAuthOptions = BetterAuthOptions> {
|
|
5260
|
+
createOAuthUser(user: Omit<User, "id" | "createdAt" | "updatedAt">, account: Omit<Account, "userId" | "id" | "createdAt" | "updatedAt"> & Partial<Account>): Promise<{
|
|
5261
|
+
user: User;
|
|
5262
|
+
account: Account;
|
|
5263
|
+
}>;
|
|
5333
5264
|
createUser<T extends Record<string, any>>(user: Omit<User, "id" | "createdAt" | "updatedAt" | "emailVerified"> & Partial<User> & Record<string, any>,
|
|
5334
5265
|
/**
|
|
5335
5266
|
* Provisioning source. The creation seam adds `action: "create-user"` and
|
|
@@ -5508,7 +5439,7 @@ type AuthContext<Options extends BetterAuthOptions = BetterAuthOptions> = Plugin
|
|
|
5508
5439
|
session: Session & Record<string, any>;
|
|
5509
5440
|
user: User & Record<string, any>;
|
|
5510
5441
|
} | null) => void;
|
|
5511
|
-
socialProviders:
|
|
5442
|
+
socialProviders: OAuthProvider[];
|
|
5512
5443
|
authCookies: BetterAuthCookies;
|
|
5513
5444
|
logger: ReturnType<typeof createLogger>;
|
|
5514
5445
|
rateLimit: {
|
|
@@ -5674,7 +5605,7 @@ declare const createAuthMiddleware: {
|
|
|
5674
5605
|
image?: string | null | undefined;
|
|
5675
5606
|
} & Record<string, any>;
|
|
5676
5607
|
} | null) => void;
|
|
5677
|
-
socialProviders:
|
|
5608
|
+
socialProviders: OAuthProvider[];
|
|
5678
5609
|
authCookies: BetterAuthCookies;
|
|
5679
5610
|
logger: ReturnType<typeof createLogger>;
|
|
5680
5611
|
rateLimit: {
|
|
@@ -5803,7 +5734,7 @@ declare const createAuthMiddleware: {
|
|
|
5803
5734
|
image?: string | null | undefined;
|
|
5804
5735
|
} & Record<string, any>;
|
|
5805
5736
|
} | null) => void;
|
|
5806
|
-
socialProviders:
|
|
5737
|
+
socialProviders: OAuthProvider[];
|
|
5807
5738
|
authCookies: BetterAuthCookies;
|
|
5808
5739
|
logger: ReturnType<typeof createLogger>;
|
|
5809
5740
|
rateLimit: {
|
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-DPq9tYZW.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.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.8",
|
|
4
4
|
"description": "Better Auth integration for Electron applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"better-sqlite3": "^12.6.2",
|
|
81
81
|
"electron": "^41.2.2",
|
|
82
82
|
"tsdown": "0.21.1",
|
|
83
|
-
"@better-auth/core": "1.7.0-beta.
|
|
84
|
-
"better-auth": "1.7.0-beta.
|
|
83
|
+
"@better-auth/core": "1.7.0-beta.8",
|
|
84
|
+
"better-auth": "1.7.0-beta.8"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@better-auth/utils": "0.4.2",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"better-call": "1.3.6",
|
|
90
90
|
"conf": "^15.0.2",
|
|
91
91
|
"electron": ">=36.0.0",
|
|
92
|
-
"@better-auth/core": "^1.7.0-beta.
|
|
93
|
-
"better-auth": "^1.7.0-beta.
|
|
92
|
+
"@better-auth/core": "^1.7.0-beta.8",
|
|
93
|
+
"better-auth": "^1.7.0-beta.8"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"electron": {
|