@authing/guard-shim-react18 4.5.31-alpha.5 → 4.5.31-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
|
|
2
2
|
import { AuthenticationClient, User } from 'authing-js-sdk';
|
|
3
3
|
import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
|
|
4
|
-
import { Agreement, LoginMethods, SocialConnectionProvider } from '../Type/application';
|
|
4
|
+
import { Agreement, LoginMethods, Protocol, SocialConnectionProvider } from '../Type/application';
|
|
5
5
|
export interface LoginConfig extends IG2Config {
|
|
6
6
|
autoRegister?: boolean;
|
|
7
7
|
disableResetPwd?: boolean;
|
|
@@ -39,3 +39,5 @@ export interface GuardLoginInitData {
|
|
|
39
39
|
_lockMethod?: string;
|
|
40
40
|
}
|
|
41
41
|
export declare const getDefaultLoginConfig: () => LoginConfig;
|
|
42
|
+
export declare const baseLoginPathMapping: Partial<Record<Protocol, string | null>>;
|
|
43
|
+
export declare const loginUrlFieldMapping: Partial<Record<Protocol, string>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Rule } from 'shim-antd/lib/form';
|
|
2
|
+
import qs from 'qs';
|
|
2
3
|
import { User } from 'authing-js-sdk';
|
|
3
4
|
import { GuardProps } from '../Guard';
|
|
4
5
|
import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods, RegisterSortMethods, TabFieldsI18nItem } from '../Type/application';
|
|
@@ -33,11 +34,12 @@ export declare function isObject(item: any): any;
|
|
|
33
34
|
*/
|
|
34
35
|
export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
+
* 在托管页下上传query中指定的用户自定义字段进行补全
|
|
38
|
+
* @param params 指定上传的用户自定义字段
|
|
37
39
|
*/
|
|
38
|
-
export declare const getUserRegisterParams: () => {
|
|
40
|
+
export declare const getUserRegisterParams: (params?: string[]) => {
|
|
39
41
|
key: string;
|
|
40
|
-
value:
|
|
42
|
+
value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
|
|
41
43
|
}[];
|
|
42
44
|
export declare enum PasswordStrength {
|
|
43
45
|
NoCheck = 0,
|
package/package.json
CHANGED