@nauth-toolkit/core 0.1.11 → 0.1.14
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/interfaces/config.interface.d.ts +3 -0
- package/dist/interfaces/config.interface.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/provider.interface.d.ts +3 -1
- package/dist/interfaces/provider.interface.d.ts.map +1 -1
- package/dist/interfaces/sms-template.interface.d.ts +42 -0
- package/dist/interfaces/sms-template.interface.d.ts.map +1 -0
- package/dist/interfaces/sms-template.interface.js +10 -0
- package/dist/interfaces/sms-template.interface.js.map +1 -0
- package/dist/schemas/auth-config.schema.d.ts +385 -225
- package/dist/schemas/auth-config.schema.d.ts.map +1 -1
- package/dist/schemas/auth-config.schema.js +21 -1
- package/dist/schemas/auth-config.schema.js.map +1 -1
- package/dist/services/auth-challenge-helper.service.d.ts.map +1 -1
- package/dist/services/auth-challenge-helper.service.js +1 -0
- package/dist/services/auth-challenge-helper.service.js.map +1 -1
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +1 -0
- package/dist/services/auth.service.js.map +1 -1
- package/dist/services/password-reset.service.d.ts.map +1 -1
- package/dist/services/password-reset.service.js +12 -1
- package/dist/services/password-reset.service.js.map +1 -1
- package/dist/services/phone-verification.service.d.ts.map +1 -1
- package/dist/services/phone-verification.service.js +14 -1
- package/dist/services/phone-verification.service.js.map +1 -1
- package/dist/templates/index.d.ts +1 -0
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +1 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/sms-template.engine.d.ts +19 -0
- package/dist/templates/sms-template.engine.d.ts.map +1 -0
- package/dist/templates/sms-template.engine.js +104 -0
- package/dist/templates/sms-template.engine.js.map +1 -0
- package/package.json +1 -1
|
@@ -550,6 +550,66 @@ export declare const emailConfigSchema: z.ZodObject<{
|
|
|
550
550
|
}> | undefined;
|
|
551
551
|
} | undefined;
|
|
552
552
|
}>;
|
|
553
|
+
export declare const smsConfigSchema: z.ZodObject<{
|
|
554
|
+
templates: z.ZodOptional<z.ZodObject<{
|
|
555
|
+
engine: z.ZodOptional<z.ZodAny>;
|
|
556
|
+
globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
557
|
+
customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
558
|
+
contentPath: z.ZodOptional<z.ZodString>;
|
|
559
|
+
content: z.ZodOptional<z.ZodString>;
|
|
560
|
+
}, "strip", z.ZodTypeAny, {
|
|
561
|
+
contentPath?: string | undefined;
|
|
562
|
+
content?: string | undefined;
|
|
563
|
+
}, {
|
|
564
|
+
contentPath?: string | undefined;
|
|
565
|
+
content?: string | undefined;
|
|
566
|
+
}>, {
|
|
567
|
+
contentPath?: string | undefined;
|
|
568
|
+
content?: string | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
contentPath?: string | undefined;
|
|
571
|
+
content?: string | undefined;
|
|
572
|
+
}>, {
|
|
573
|
+
contentPath?: string | undefined;
|
|
574
|
+
content?: string | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
contentPath?: string | undefined;
|
|
577
|
+
content?: string | undefined;
|
|
578
|
+
}>>>;
|
|
579
|
+
}, "strip", z.ZodTypeAny, {
|
|
580
|
+
engine?: any;
|
|
581
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
582
|
+
customTemplates?: Record<string, {
|
|
583
|
+
contentPath?: string | undefined;
|
|
584
|
+
content?: string | undefined;
|
|
585
|
+
}> | undefined;
|
|
586
|
+
}, {
|
|
587
|
+
engine?: any;
|
|
588
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
589
|
+
customTemplates?: Record<string, {
|
|
590
|
+
contentPath?: string | undefined;
|
|
591
|
+
content?: string | undefined;
|
|
592
|
+
}> | undefined;
|
|
593
|
+
}>>;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
templates?: {
|
|
596
|
+
engine?: any;
|
|
597
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
598
|
+
customTemplates?: Record<string, {
|
|
599
|
+
contentPath?: string | undefined;
|
|
600
|
+
content?: string | undefined;
|
|
601
|
+
}> | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
}, {
|
|
604
|
+
templates?: {
|
|
605
|
+
engine?: any;
|
|
606
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
607
|
+
customTemplates?: Record<string, {
|
|
608
|
+
contentPath?: string | undefined;
|
|
609
|
+
content?: string | undefined;
|
|
610
|
+
}> | undefined;
|
|
611
|
+
} | undefined;
|
|
612
|
+
}>;
|
|
553
613
|
export declare const phoneConfigSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
554
614
|
export declare const socialProviderConfigSchema: z.ZodObject<{
|
|
555
615
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1927,6 +1987,66 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1927
1987
|
} | undefined;
|
|
1928
1988
|
}>>;
|
|
1929
1989
|
smsProvider: z.ZodOptional<z.ZodAny>;
|
|
1990
|
+
sms: z.ZodOptional<z.ZodObject<{
|
|
1991
|
+
templates: z.ZodOptional<z.ZodObject<{
|
|
1992
|
+
engine: z.ZodOptional<z.ZodAny>;
|
|
1993
|
+
globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1994
|
+
customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1995
|
+
contentPath: z.ZodOptional<z.ZodString>;
|
|
1996
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1997
|
+
}, "strip", z.ZodTypeAny, {
|
|
1998
|
+
contentPath?: string | undefined;
|
|
1999
|
+
content?: string | undefined;
|
|
2000
|
+
}, {
|
|
2001
|
+
contentPath?: string | undefined;
|
|
2002
|
+
content?: string | undefined;
|
|
2003
|
+
}>, {
|
|
2004
|
+
contentPath?: string | undefined;
|
|
2005
|
+
content?: string | undefined;
|
|
2006
|
+
}, {
|
|
2007
|
+
contentPath?: string | undefined;
|
|
2008
|
+
content?: string | undefined;
|
|
2009
|
+
}>, {
|
|
2010
|
+
contentPath?: string | undefined;
|
|
2011
|
+
content?: string | undefined;
|
|
2012
|
+
}, {
|
|
2013
|
+
contentPath?: string | undefined;
|
|
2014
|
+
content?: string | undefined;
|
|
2015
|
+
}>>>;
|
|
2016
|
+
}, "strip", z.ZodTypeAny, {
|
|
2017
|
+
engine?: any;
|
|
2018
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2019
|
+
customTemplates?: Record<string, {
|
|
2020
|
+
contentPath?: string | undefined;
|
|
2021
|
+
content?: string | undefined;
|
|
2022
|
+
}> | undefined;
|
|
2023
|
+
}, {
|
|
2024
|
+
engine?: any;
|
|
2025
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2026
|
+
customTemplates?: Record<string, {
|
|
2027
|
+
contentPath?: string | undefined;
|
|
2028
|
+
content?: string | undefined;
|
|
2029
|
+
}> | undefined;
|
|
2030
|
+
}>>;
|
|
2031
|
+
}, "strip", z.ZodTypeAny, {
|
|
2032
|
+
templates?: {
|
|
2033
|
+
engine?: any;
|
|
2034
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2035
|
+
customTemplates?: Record<string, {
|
|
2036
|
+
contentPath?: string | undefined;
|
|
2037
|
+
content?: string | undefined;
|
|
2038
|
+
}> | undefined;
|
|
2039
|
+
} | undefined;
|
|
2040
|
+
}, {
|
|
2041
|
+
templates?: {
|
|
2042
|
+
engine?: any;
|
|
2043
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2044
|
+
customTemplates?: Record<string, {
|
|
2045
|
+
contentPath?: string | undefined;
|
|
2046
|
+
content?: string | undefined;
|
|
2047
|
+
}> | undefined;
|
|
2048
|
+
} | undefined;
|
|
2049
|
+
}>>;
|
|
1930
2050
|
phone: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
1931
2051
|
storageAdapter: z.ZodOptional<z.ZodAny>;
|
|
1932
2052
|
social: z.ZodOptional<z.ZodObject<{
|
|
@@ -2518,6 +2638,16 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2518
2638
|
issuer?: string | undefined;
|
|
2519
2639
|
audience?: string | string[] | undefined;
|
|
2520
2640
|
};
|
|
2641
|
+
sms?: {
|
|
2642
|
+
templates?: {
|
|
2643
|
+
engine?: any;
|
|
2644
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2645
|
+
customTemplates?: Record<string, {
|
|
2646
|
+
contentPath?: string | undefined;
|
|
2647
|
+
content?: string | undefined;
|
|
2648
|
+
}> | undefined;
|
|
2649
|
+
} | undefined;
|
|
2650
|
+
} | undefined;
|
|
2521
2651
|
email?: {
|
|
2522
2652
|
appName?: string | undefined;
|
|
2523
2653
|
companyName?: string | undefined;
|
|
@@ -2538,61 +2668,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2538
2668
|
}> | undefined;
|
|
2539
2669
|
} | undefined;
|
|
2540
2670
|
} | undefined;
|
|
2541
|
-
phone?: {} | undefined;
|
|
2542
|
-
password?: {
|
|
2543
|
-
passwordReset?: {
|
|
2544
|
-
expiresIn?: number | undefined;
|
|
2545
|
-
maxAttempts?: number | undefined;
|
|
2546
|
-
rateLimitMax?: number | undefined;
|
|
2547
|
-
rateLimitWindow?: number | undefined;
|
|
2548
|
-
codeLength?: number | undefined;
|
|
2549
|
-
} | undefined;
|
|
2550
|
-
minLength?: number | undefined;
|
|
2551
|
-
maxLength?: number | undefined;
|
|
2552
|
-
requireUppercase?: boolean | undefined;
|
|
2553
|
-
requireLowercase?: boolean | undefined;
|
|
2554
|
-
requireNumbers?: boolean | undefined;
|
|
2555
|
-
requireSpecialChars?: boolean | undefined;
|
|
2556
|
-
specialChars?: string | undefined;
|
|
2557
|
-
preventCommon?: boolean | undefined;
|
|
2558
|
-
preventUserInfo?: boolean | undefined;
|
|
2559
|
-
historyCount?: number | undefined;
|
|
2560
|
-
expiryDays?: number | undefined;
|
|
2561
|
-
} | undefined;
|
|
2562
|
-
session?: {
|
|
2563
|
-
maxConcurrent?: number | undefined;
|
|
2564
|
-
disallowMultipleSessions?: boolean | undefined;
|
|
2565
|
-
maxLifetime?: string | number | undefined;
|
|
2566
|
-
} | undefined;
|
|
2567
|
-
social?: {
|
|
2568
|
-
google?: {
|
|
2569
|
-
enabled?: boolean | undefined;
|
|
2570
|
-
clientId?: string | string[] | undefined;
|
|
2571
|
-
clientSecret?: string | undefined;
|
|
2572
|
-
callbackUrl?: string | undefined;
|
|
2573
|
-
scopes?: string[] | undefined;
|
|
2574
|
-
autoLink?: boolean | undefined;
|
|
2575
|
-
allowSignup?: boolean | undefined;
|
|
2576
|
-
} | undefined;
|
|
2577
|
-
apple?: {
|
|
2578
|
-
enabled?: boolean | undefined;
|
|
2579
|
-
clientId?: string | string[] | undefined;
|
|
2580
|
-
clientSecret?: string | undefined;
|
|
2581
|
-
callbackUrl?: string | undefined;
|
|
2582
|
-
scopes?: string[] | undefined;
|
|
2583
|
-
autoLink?: boolean | undefined;
|
|
2584
|
-
allowSignup?: boolean | undefined;
|
|
2585
|
-
} | undefined;
|
|
2586
|
-
facebook?: {
|
|
2587
|
-
enabled?: boolean | undefined;
|
|
2588
|
-
clientId?: string | string[] | undefined;
|
|
2589
|
-
clientSecret?: string | undefined;
|
|
2590
|
-
callbackUrl?: string | undefined;
|
|
2591
|
-
scopes?: string[] | undefined;
|
|
2592
|
-
autoLink?: boolean | undefined;
|
|
2593
|
-
allowSignup?: boolean | undefined;
|
|
2594
|
-
} | undefined;
|
|
2595
|
-
} | undefined;
|
|
2596
2671
|
mfa?: {
|
|
2597
2672
|
totp?: {
|
|
2598
2673
|
algorithm?: "sha1" | "sha256" | "sha512" | undefined;
|
|
@@ -2653,6 +2728,61 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2653
2728
|
suspiciousActivityWindow?: number | undefined;
|
|
2654
2729
|
} | undefined;
|
|
2655
2730
|
} | undefined;
|
|
2731
|
+
phone?: {} | undefined;
|
|
2732
|
+
password?: {
|
|
2733
|
+
passwordReset?: {
|
|
2734
|
+
expiresIn?: number | undefined;
|
|
2735
|
+
maxAttempts?: number | undefined;
|
|
2736
|
+
rateLimitMax?: number | undefined;
|
|
2737
|
+
rateLimitWindow?: number | undefined;
|
|
2738
|
+
codeLength?: number | undefined;
|
|
2739
|
+
} | undefined;
|
|
2740
|
+
minLength?: number | undefined;
|
|
2741
|
+
maxLength?: number | undefined;
|
|
2742
|
+
requireUppercase?: boolean | undefined;
|
|
2743
|
+
requireLowercase?: boolean | undefined;
|
|
2744
|
+
requireNumbers?: boolean | undefined;
|
|
2745
|
+
requireSpecialChars?: boolean | undefined;
|
|
2746
|
+
specialChars?: string | undefined;
|
|
2747
|
+
preventCommon?: boolean | undefined;
|
|
2748
|
+
preventUserInfo?: boolean | undefined;
|
|
2749
|
+
historyCount?: number | undefined;
|
|
2750
|
+
expiryDays?: number | undefined;
|
|
2751
|
+
} | undefined;
|
|
2752
|
+
session?: {
|
|
2753
|
+
maxConcurrent?: number | undefined;
|
|
2754
|
+
disallowMultipleSessions?: boolean | undefined;
|
|
2755
|
+
maxLifetime?: string | number | undefined;
|
|
2756
|
+
} | undefined;
|
|
2757
|
+
social?: {
|
|
2758
|
+
google?: {
|
|
2759
|
+
enabled?: boolean | undefined;
|
|
2760
|
+
clientId?: string | string[] | undefined;
|
|
2761
|
+
clientSecret?: string | undefined;
|
|
2762
|
+
callbackUrl?: string | undefined;
|
|
2763
|
+
scopes?: string[] | undefined;
|
|
2764
|
+
autoLink?: boolean | undefined;
|
|
2765
|
+
allowSignup?: boolean | undefined;
|
|
2766
|
+
} | undefined;
|
|
2767
|
+
apple?: {
|
|
2768
|
+
enabled?: boolean | undefined;
|
|
2769
|
+
clientId?: string | string[] | undefined;
|
|
2770
|
+
clientSecret?: string | undefined;
|
|
2771
|
+
callbackUrl?: string | undefined;
|
|
2772
|
+
scopes?: string[] | undefined;
|
|
2773
|
+
autoLink?: boolean | undefined;
|
|
2774
|
+
allowSignup?: boolean | undefined;
|
|
2775
|
+
} | undefined;
|
|
2776
|
+
facebook?: {
|
|
2777
|
+
enabled?: boolean | undefined;
|
|
2778
|
+
clientId?: string | string[] | undefined;
|
|
2779
|
+
clientSecret?: string | undefined;
|
|
2780
|
+
callbackUrl?: string | undefined;
|
|
2781
|
+
scopes?: string[] | undefined;
|
|
2782
|
+
autoLink?: boolean | undefined;
|
|
2783
|
+
allowSignup?: boolean | undefined;
|
|
2784
|
+
} | undefined;
|
|
2785
|
+
} | undefined;
|
|
2656
2786
|
tablePrefix?: string | undefined;
|
|
2657
2787
|
signup?: {
|
|
2658
2788
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -2768,6 +2898,16 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2768
2898
|
issuer?: string | undefined;
|
|
2769
2899
|
audience?: string | string[] | undefined;
|
|
2770
2900
|
};
|
|
2901
|
+
sms?: {
|
|
2902
|
+
templates?: {
|
|
2903
|
+
engine?: any;
|
|
2904
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2905
|
+
customTemplates?: Record<string, {
|
|
2906
|
+
contentPath?: string | undefined;
|
|
2907
|
+
content?: string | undefined;
|
|
2908
|
+
}> | undefined;
|
|
2909
|
+
} | undefined;
|
|
2910
|
+
} | undefined;
|
|
2771
2911
|
email?: {
|
|
2772
2912
|
appName?: string | undefined;
|
|
2773
2913
|
companyName?: string | undefined;
|
|
@@ -2788,61 +2928,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2788
2928
|
}> | undefined;
|
|
2789
2929
|
} | undefined;
|
|
2790
2930
|
} | undefined;
|
|
2791
|
-
phone?: {} | undefined;
|
|
2792
|
-
password?: {
|
|
2793
|
-
passwordReset?: {
|
|
2794
|
-
expiresIn?: number | undefined;
|
|
2795
|
-
maxAttempts?: number | undefined;
|
|
2796
|
-
rateLimitMax?: number | undefined;
|
|
2797
|
-
rateLimitWindow?: number | undefined;
|
|
2798
|
-
codeLength?: number | undefined;
|
|
2799
|
-
} | undefined;
|
|
2800
|
-
minLength?: number | undefined;
|
|
2801
|
-
maxLength?: number | undefined;
|
|
2802
|
-
requireUppercase?: boolean | undefined;
|
|
2803
|
-
requireLowercase?: boolean | undefined;
|
|
2804
|
-
requireNumbers?: boolean | undefined;
|
|
2805
|
-
requireSpecialChars?: boolean | undefined;
|
|
2806
|
-
specialChars?: string | undefined;
|
|
2807
|
-
preventCommon?: boolean | undefined;
|
|
2808
|
-
preventUserInfo?: boolean | undefined;
|
|
2809
|
-
historyCount?: number | undefined;
|
|
2810
|
-
expiryDays?: number | undefined;
|
|
2811
|
-
} | undefined;
|
|
2812
|
-
session?: {
|
|
2813
|
-
maxConcurrent?: number | undefined;
|
|
2814
|
-
disallowMultipleSessions?: boolean | undefined;
|
|
2815
|
-
maxLifetime?: string | number | undefined;
|
|
2816
|
-
} | undefined;
|
|
2817
|
-
social?: {
|
|
2818
|
-
google?: {
|
|
2819
|
-
enabled?: boolean | undefined;
|
|
2820
|
-
clientId?: string | string[] | undefined;
|
|
2821
|
-
clientSecret?: string | undefined;
|
|
2822
|
-
callbackUrl?: string | undefined;
|
|
2823
|
-
scopes?: string[] | undefined;
|
|
2824
|
-
autoLink?: boolean | undefined;
|
|
2825
|
-
allowSignup?: boolean | undefined;
|
|
2826
|
-
} | undefined;
|
|
2827
|
-
apple?: {
|
|
2828
|
-
enabled?: boolean | undefined;
|
|
2829
|
-
clientId?: string | string[] | undefined;
|
|
2830
|
-
clientSecret?: string | undefined;
|
|
2831
|
-
callbackUrl?: string | undefined;
|
|
2832
|
-
scopes?: string[] | undefined;
|
|
2833
|
-
autoLink?: boolean | undefined;
|
|
2834
|
-
allowSignup?: boolean | undefined;
|
|
2835
|
-
} | undefined;
|
|
2836
|
-
facebook?: {
|
|
2837
|
-
enabled?: boolean | undefined;
|
|
2838
|
-
clientId?: string | string[] | undefined;
|
|
2839
|
-
clientSecret?: string | undefined;
|
|
2840
|
-
callbackUrl?: string | undefined;
|
|
2841
|
-
scopes?: string[] | undefined;
|
|
2842
|
-
autoLink?: boolean | undefined;
|
|
2843
|
-
allowSignup?: boolean | undefined;
|
|
2844
|
-
} | undefined;
|
|
2845
|
-
} | undefined;
|
|
2846
2931
|
mfa?: {
|
|
2847
2932
|
totp?: {
|
|
2848
2933
|
algorithm?: "sha1" | "sha256" | "sha512" | undefined;
|
|
@@ -2903,11 +2988,66 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2903
2988
|
suspiciousActivityWindow?: number | undefined;
|
|
2904
2989
|
} | undefined;
|
|
2905
2990
|
} | undefined;
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2991
|
+
phone?: {} | undefined;
|
|
2992
|
+
password?: {
|
|
2993
|
+
passwordReset?: {
|
|
2994
|
+
expiresIn?: number | undefined;
|
|
2995
|
+
maxAttempts?: number | undefined;
|
|
2996
|
+
rateLimitMax?: number | undefined;
|
|
2997
|
+
rateLimitWindow?: number | undefined;
|
|
2998
|
+
codeLength?: number | undefined;
|
|
2999
|
+
} | undefined;
|
|
3000
|
+
minLength?: number | undefined;
|
|
3001
|
+
maxLength?: number | undefined;
|
|
3002
|
+
requireUppercase?: boolean | undefined;
|
|
3003
|
+
requireLowercase?: boolean | undefined;
|
|
3004
|
+
requireNumbers?: boolean | undefined;
|
|
3005
|
+
requireSpecialChars?: boolean | undefined;
|
|
3006
|
+
specialChars?: string | undefined;
|
|
3007
|
+
preventCommon?: boolean | undefined;
|
|
3008
|
+
preventUserInfo?: boolean | undefined;
|
|
3009
|
+
historyCount?: number | undefined;
|
|
3010
|
+
expiryDays?: number | undefined;
|
|
3011
|
+
} | undefined;
|
|
3012
|
+
session?: {
|
|
3013
|
+
maxConcurrent?: number | undefined;
|
|
3014
|
+
disallowMultipleSessions?: boolean | undefined;
|
|
3015
|
+
maxLifetime?: string | number | undefined;
|
|
3016
|
+
} | undefined;
|
|
3017
|
+
social?: {
|
|
3018
|
+
google?: {
|
|
3019
|
+
enabled?: boolean | undefined;
|
|
3020
|
+
clientId?: string | string[] | undefined;
|
|
3021
|
+
clientSecret?: string | undefined;
|
|
3022
|
+
callbackUrl?: string | undefined;
|
|
3023
|
+
scopes?: string[] | undefined;
|
|
3024
|
+
autoLink?: boolean | undefined;
|
|
3025
|
+
allowSignup?: boolean | undefined;
|
|
3026
|
+
} | undefined;
|
|
3027
|
+
apple?: {
|
|
3028
|
+
enabled?: boolean | undefined;
|
|
3029
|
+
clientId?: string | string[] | undefined;
|
|
3030
|
+
clientSecret?: string | undefined;
|
|
3031
|
+
callbackUrl?: string | undefined;
|
|
3032
|
+
scopes?: string[] | undefined;
|
|
3033
|
+
autoLink?: boolean | undefined;
|
|
3034
|
+
allowSignup?: boolean | undefined;
|
|
3035
|
+
} | undefined;
|
|
3036
|
+
facebook?: {
|
|
3037
|
+
enabled?: boolean | undefined;
|
|
3038
|
+
clientId?: string | string[] | undefined;
|
|
3039
|
+
clientSecret?: string | undefined;
|
|
3040
|
+
callbackUrl?: string | undefined;
|
|
3041
|
+
scopes?: string[] | undefined;
|
|
3042
|
+
autoLink?: boolean | undefined;
|
|
3043
|
+
allowSignup?: boolean | undefined;
|
|
3044
|
+
} | undefined;
|
|
3045
|
+
} | undefined;
|
|
3046
|
+
tablePrefix?: string | undefined;
|
|
3047
|
+
signup?: {
|
|
3048
|
+
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
3049
|
+
enabled?: boolean | undefined;
|
|
3050
|
+
allowDuplicatePhones?: boolean | undefined;
|
|
2911
3051
|
emailVerification?: {
|
|
2912
3052
|
expiresIn?: number | undefined;
|
|
2913
3053
|
resendDelay?: number | undefined;
|
|
@@ -3018,6 +3158,16 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3018
3158
|
issuer?: string | undefined;
|
|
3019
3159
|
audience?: string | string[] | undefined;
|
|
3020
3160
|
};
|
|
3161
|
+
sms?: {
|
|
3162
|
+
templates?: {
|
|
3163
|
+
engine?: any;
|
|
3164
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3165
|
+
customTemplates?: Record<string, {
|
|
3166
|
+
contentPath?: string | undefined;
|
|
3167
|
+
content?: string | undefined;
|
|
3168
|
+
}> | undefined;
|
|
3169
|
+
} | undefined;
|
|
3170
|
+
} | undefined;
|
|
3021
3171
|
email?: {
|
|
3022
3172
|
appName?: string | undefined;
|
|
3023
3173
|
companyName?: string | undefined;
|
|
@@ -3038,61 +3188,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3038
3188
|
}> | undefined;
|
|
3039
3189
|
} | undefined;
|
|
3040
3190
|
} | undefined;
|
|
3041
|
-
phone?: {} | undefined;
|
|
3042
|
-
password?: {
|
|
3043
|
-
passwordReset?: {
|
|
3044
|
-
expiresIn?: number | undefined;
|
|
3045
|
-
maxAttempts?: number | undefined;
|
|
3046
|
-
rateLimitMax?: number | undefined;
|
|
3047
|
-
rateLimitWindow?: number | undefined;
|
|
3048
|
-
codeLength?: number | undefined;
|
|
3049
|
-
} | undefined;
|
|
3050
|
-
minLength?: number | undefined;
|
|
3051
|
-
maxLength?: number | undefined;
|
|
3052
|
-
requireUppercase?: boolean | undefined;
|
|
3053
|
-
requireLowercase?: boolean | undefined;
|
|
3054
|
-
requireNumbers?: boolean | undefined;
|
|
3055
|
-
requireSpecialChars?: boolean | undefined;
|
|
3056
|
-
specialChars?: string | undefined;
|
|
3057
|
-
preventCommon?: boolean | undefined;
|
|
3058
|
-
preventUserInfo?: boolean | undefined;
|
|
3059
|
-
historyCount?: number | undefined;
|
|
3060
|
-
expiryDays?: number | undefined;
|
|
3061
|
-
} | undefined;
|
|
3062
|
-
session?: {
|
|
3063
|
-
maxConcurrent?: number | undefined;
|
|
3064
|
-
disallowMultipleSessions?: boolean | undefined;
|
|
3065
|
-
maxLifetime?: string | number | undefined;
|
|
3066
|
-
} | undefined;
|
|
3067
|
-
social?: {
|
|
3068
|
-
google?: {
|
|
3069
|
-
enabled?: boolean | undefined;
|
|
3070
|
-
clientId?: string | string[] | undefined;
|
|
3071
|
-
clientSecret?: string | undefined;
|
|
3072
|
-
callbackUrl?: string | undefined;
|
|
3073
|
-
scopes?: string[] | undefined;
|
|
3074
|
-
autoLink?: boolean | undefined;
|
|
3075
|
-
allowSignup?: boolean | undefined;
|
|
3076
|
-
} | undefined;
|
|
3077
|
-
apple?: {
|
|
3078
|
-
enabled?: boolean | undefined;
|
|
3079
|
-
clientId?: string | string[] | undefined;
|
|
3080
|
-
clientSecret?: string | undefined;
|
|
3081
|
-
callbackUrl?: string | undefined;
|
|
3082
|
-
scopes?: string[] | undefined;
|
|
3083
|
-
autoLink?: boolean | undefined;
|
|
3084
|
-
allowSignup?: boolean | undefined;
|
|
3085
|
-
} | undefined;
|
|
3086
|
-
facebook?: {
|
|
3087
|
-
enabled?: boolean | undefined;
|
|
3088
|
-
clientId?: string | string[] | undefined;
|
|
3089
|
-
clientSecret?: string | undefined;
|
|
3090
|
-
callbackUrl?: string | undefined;
|
|
3091
|
-
scopes?: string[] | undefined;
|
|
3092
|
-
autoLink?: boolean | undefined;
|
|
3093
|
-
allowSignup?: boolean | undefined;
|
|
3094
|
-
} | undefined;
|
|
3095
|
-
} | undefined;
|
|
3096
3191
|
mfa?: {
|
|
3097
3192
|
totp?: {
|
|
3098
3193
|
algorithm?: "sha1" | "sha256" | "sha512" | undefined;
|
|
@@ -3153,6 +3248,61 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3153
3248
|
suspiciousActivityWindow?: number | undefined;
|
|
3154
3249
|
} | undefined;
|
|
3155
3250
|
} | undefined;
|
|
3251
|
+
phone?: {} | undefined;
|
|
3252
|
+
password?: {
|
|
3253
|
+
passwordReset?: {
|
|
3254
|
+
expiresIn?: number | undefined;
|
|
3255
|
+
maxAttempts?: number | undefined;
|
|
3256
|
+
rateLimitMax?: number | undefined;
|
|
3257
|
+
rateLimitWindow?: number | undefined;
|
|
3258
|
+
codeLength?: number | undefined;
|
|
3259
|
+
} | undefined;
|
|
3260
|
+
minLength?: number | undefined;
|
|
3261
|
+
maxLength?: number | undefined;
|
|
3262
|
+
requireUppercase?: boolean | undefined;
|
|
3263
|
+
requireLowercase?: boolean | undefined;
|
|
3264
|
+
requireNumbers?: boolean | undefined;
|
|
3265
|
+
requireSpecialChars?: boolean | undefined;
|
|
3266
|
+
specialChars?: string | undefined;
|
|
3267
|
+
preventCommon?: boolean | undefined;
|
|
3268
|
+
preventUserInfo?: boolean | undefined;
|
|
3269
|
+
historyCount?: number | undefined;
|
|
3270
|
+
expiryDays?: number | undefined;
|
|
3271
|
+
} | undefined;
|
|
3272
|
+
session?: {
|
|
3273
|
+
maxConcurrent?: number | undefined;
|
|
3274
|
+
disallowMultipleSessions?: boolean | undefined;
|
|
3275
|
+
maxLifetime?: string | number | undefined;
|
|
3276
|
+
} | undefined;
|
|
3277
|
+
social?: {
|
|
3278
|
+
google?: {
|
|
3279
|
+
enabled?: boolean | undefined;
|
|
3280
|
+
clientId?: string | string[] | undefined;
|
|
3281
|
+
clientSecret?: string | undefined;
|
|
3282
|
+
callbackUrl?: string | undefined;
|
|
3283
|
+
scopes?: string[] | undefined;
|
|
3284
|
+
autoLink?: boolean | undefined;
|
|
3285
|
+
allowSignup?: boolean | undefined;
|
|
3286
|
+
} | undefined;
|
|
3287
|
+
apple?: {
|
|
3288
|
+
enabled?: boolean | undefined;
|
|
3289
|
+
clientId?: string | string[] | undefined;
|
|
3290
|
+
clientSecret?: string | undefined;
|
|
3291
|
+
callbackUrl?: string | undefined;
|
|
3292
|
+
scopes?: string[] | undefined;
|
|
3293
|
+
autoLink?: boolean | undefined;
|
|
3294
|
+
allowSignup?: boolean | undefined;
|
|
3295
|
+
} | undefined;
|
|
3296
|
+
facebook?: {
|
|
3297
|
+
enabled?: boolean | undefined;
|
|
3298
|
+
clientId?: string | string[] | undefined;
|
|
3299
|
+
clientSecret?: string | undefined;
|
|
3300
|
+
callbackUrl?: string | undefined;
|
|
3301
|
+
scopes?: string[] | undefined;
|
|
3302
|
+
autoLink?: boolean | undefined;
|
|
3303
|
+
allowSignup?: boolean | undefined;
|
|
3304
|
+
} | undefined;
|
|
3305
|
+
} | undefined;
|
|
3156
3306
|
tablePrefix?: string | undefined;
|
|
3157
3307
|
signup?: {
|
|
3158
3308
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -3268,6 +3418,16 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3268
3418
|
issuer?: string | undefined;
|
|
3269
3419
|
audience?: string | string[] | undefined;
|
|
3270
3420
|
};
|
|
3421
|
+
sms?: {
|
|
3422
|
+
templates?: {
|
|
3423
|
+
engine?: any;
|
|
3424
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3425
|
+
customTemplates?: Record<string, {
|
|
3426
|
+
contentPath?: string | undefined;
|
|
3427
|
+
content?: string | undefined;
|
|
3428
|
+
}> | undefined;
|
|
3429
|
+
} | undefined;
|
|
3430
|
+
} | undefined;
|
|
3271
3431
|
email?: {
|
|
3272
3432
|
appName?: string | undefined;
|
|
3273
3433
|
companyName?: string | undefined;
|
|
@@ -3288,61 +3448,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3288
3448
|
}> | undefined;
|
|
3289
3449
|
} | undefined;
|
|
3290
3450
|
} | undefined;
|
|
3291
|
-
phone?: {} | undefined;
|
|
3292
|
-
password?: {
|
|
3293
|
-
passwordReset?: {
|
|
3294
|
-
expiresIn?: number | undefined;
|
|
3295
|
-
maxAttempts?: number | undefined;
|
|
3296
|
-
rateLimitMax?: number | undefined;
|
|
3297
|
-
rateLimitWindow?: number | undefined;
|
|
3298
|
-
codeLength?: number | undefined;
|
|
3299
|
-
} | undefined;
|
|
3300
|
-
minLength?: number | undefined;
|
|
3301
|
-
maxLength?: number | undefined;
|
|
3302
|
-
requireUppercase?: boolean | undefined;
|
|
3303
|
-
requireLowercase?: boolean | undefined;
|
|
3304
|
-
requireNumbers?: boolean | undefined;
|
|
3305
|
-
requireSpecialChars?: boolean | undefined;
|
|
3306
|
-
specialChars?: string | undefined;
|
|
3307
|
-
preventCommon?: boolean | undefined;
|
|
3308
|
-
preventUserInfo?: boolean | undefined;
|
|
3309
|
-
historyCount?: number | undefined;
|
|
3310
|
-
expiryDays?: number | undefined;
|
|
3311
|
-
} | undefined;
|
|
3312
|
-
session?: {
|
|
3313
|
-
maxConcurrent?: number | undefined;
|
|
3314
|
-
disallowMultipleSessions?: boolean | undefined;
|
|
3315
|
-
maxLifetime?: string | number | undefined;
|
|
3316
|
-
} | undefined;
|
|
3317
|
-
social?: {
|
|
3318
|
-
google?: {
|
|
3319
|
-
enabled?: boolean | undefined;
|
|
3320
|
-
clientId?: string | string[] | undefined;
|
|
3321
|
-
clientSecret?: string | undefined;
|
|
3322
|
-
callbackUrl?: string | undefined;
|
|
3323
|
-
scopes?: string[] | undefined;
|
|
3324
|
-
autoLink?: boolean | undefined;
|
|
3325
|
-
allowSignup?: boolean | undefined;
|
|
3326
|
-
} | undefined;
|
|
3327
|
-
apple?: {
|
|
3328
|
-
enabled?: boolean | undefined;
|
|
3329
|
-
clientId?: string | string[] | undefined;
|
|
3330
|
-
clientSecret?: string | undefined;
|
|
3331
|
-
callbackUrl?: string | undefined;
|
|
3332
|
-
scopes?: string[] | undefined;
|
|
3333
|
-
autoLink?: boolean | undefined;
|
|
3334
|
-
allowSignup?: boolean | undefined;
|
|
3335
|
-
} | undefined;
|
|
3336
|
-
facebook?: {
|
|
3337
|
-
enabled?: boolean | undefined;
|
|
3338
|
-
clientId?: string | string[] | undefined;
|
|
3339
|
-
clientSecret?: string | undefined;
|
|
3340
|
-
callbackUrl?: string | undefined;
|
|
3341
|
-
scopes?: string[] | undefined;
|
|
3342
|
-
autoLink?: boolean | undefined;
|
|
3343
|
-
allowSignup?: boolean | undefined;
|
|
3344
|
-
} | undefined;
|
|
3345
|
-
} | undefined;
|
|
3346
3451
|
mfa?: {
|
|
3347
3452
|
totp?: {
|
|
3348
3453
|
algorithm?: "sha1" | "sha256" | "sha512" | undefined;
|
|
@@ -3403,6 +3508,61 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3403
3508
|
suspiciousActivityWindow?: number | undefined;
|
|
3404
3509
|
} | undefined;
|
|
3405
3510
|
} | undefined;
|
|
3511
|
+
phone?: {} | undefined;
|
|
3512
|
+
password?: {
|
|
3513
|
+
passwordReset?: {
|
|
3514
|
+
expiresIn?: number | undefined;
|
|
3515
|
+
maxAttempts?: number | undefined;
|
|
3516
|
+
rateLimitMax?: number | undefined;
|
|
3517
|
+
rateLimitWindow?: number | undefined;
|
|
3518
|
+
codeLength?: number | undefined;
|
|
3519
|
+
} | undefined;
|
|
3520
|
+
minLength?: number | undefined;
|
|
3521
|
+
maxLength?: number | undefined;
|
|
3522
|
+
requireUppercase?: boolean | undefined;
|
|
3523
|
+
requireLowercase?: boolean | undefined;
|
|
3524
|
+
requireNumbers?: boolean | undefined;
|
|
3525
|
+
requireSpecialChars?: boolean | undefined;
|
|
3526
|
+
specialChars?: string | undefined;
|
|
3527
|
+
preventCommon?: boolean | undefined;
|
|
3528
|
+
preventUserInfo?: boolean | undefined;
|
|
3529
|
+
historyCount?: number | undefined;
|
|
3530
|
+
expiryDays?: number | undefined;
|
|
3531
|
+
} | undefined;
|
|
3532
|
+
session?: {
|
|
3533
|
+
maxConcurrent?: number | undefined;
|
|
3534
|
+
disallowMultipleSessions?: boolean | undefined;
|
|
3535
|
+
maxLifetime?: string | number | undefined;
|
|
3536
|
+
} | undefined;
|
|
3537
|
+
social?: {
|
|
3538
|
+
google?: {
|
|
3539
|
+
enabled?: boolean | undefined;
|
|
3540
|
+
clientId?: string | string[] | undefined;
|
|
3541
|
+
clientSecret?: string | undefined;
|
|
3542
|
+
callbackUrl?: string | undefined;
|
|
3543
|
+
scopes?: string[] | undefined;
|
|
3544
|
+
autoLink?: boolean | undefined;
|
|
3545
|
+
allowSignup?: boolean | undefined;
|
|
3546
|
+
} | undefined;
|
|
3547
|
+
apple?: {
|
|
3548
|
+
enabled?: boolean | undefined;
|
|
3549
|
+
clientId?: string | string[] | undefined;
|
|
3550
|
+
clientSecret?: string | undefined;
|
|
3551
|
+
callbackUrl?: string | undefined;
|
|
3552
|
+
scopes?: string[] | undefined;
|
|
3553
|
+
autoLink?: boolean | undefined;
|
|
3554
|
+
allowSignup?: boolean | undefined;
|
|
3555
|
+
} | undefined;
|
|
3556
|
+
facebook?: {
|
|
3557
|
+
enabled?: boolean | undefined;
|
|
3558
|
+
clientId?: string | string[] | undefined;
|
|
3559
|
+
clientSecret?: string | undefined;
|
|
3560
|
+
callbackUrl?: string | undefined;
|
|
3561
|
+
scopes?: string[] | undefined;
|
|
3562
|
+
autoLink?: boolean | undefined;
|
|
3563
|
+
allowSignup?: boolean | undefined;
|
|
3564
|
+
} | undefined;
|
|
3565
|
+
} | undefined;
|
|
3406
3566
|
tablePrefix?: string | undefined;
|
|
3407
3567
|
signup?: {
|
|
3408
3568
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|