@memobit/libs 1.0.35 → 1.0.36
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/index.css +1 -1
- package/dist/index.d.ts +19 -2
- package/dist/index.esm.js +3381 -2965
- package/dist/version.json +4 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,8 @@ export declare interface AuthContextValue {
|
|
|
106
106
|
isAuthenticated: boolean;
|
|
107
107
|
isLoading: boolean;
|
|
108
108
|
config: AuthConfig;
|
|
109
|
-
login: (credentials: LoginCredentials) => Promise<
|
|
109
|
+
login: (credentials: LoginCredentials) => Promise<LoginOutcome>;
|
|
110
|
+
verifyMfa: (code: string, trustDevice: boolean) => Promise<void>;
|
|
110
111
|
logout: () => Promise<void>;
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -1763,17 +1764,24 @@ export declare interface LoginCredentials {
|
|
|
1763
1764
|
rememberMe: boolean;
|
|
1764
1765
|
}
|
|
1765
1766
|
|
|
1767
|
+
export declare interface LoginOutcome {
|
|
1768
|
+
mfaRequired: boolean;
|
|
1769
|
+
method?: MfaMethod;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1766
1772
|
declare interface LoginProps {
|
|
1767
1773
|
redirectPath?: string;
|
|
1768
1774
|
}
|
|
1769
1775
|
|
|
1770
1776
|
export declare interface LoginResponse {
|
|
1771
|
-
user
|
|
1777
|
+
user?: {
|
|
1772
1778
|
id: string;
|
|
1773
1779
|
username: string;
|
|
1774
1780
|
createdAt: string;
|
|
1775
1781
|
};
|
|
1776
1782
|
expiresAt?: string;
|
|
1783
|
+
mfaRequired?: boolean;
|
|
1784
|
+
method?: MfaMethod;
|
|
1777
1785
|
}
|
|
1778
1786
|
|
|
1779
1787
|
export declare const matchStringsByLogicalOperator: (searchItems: string[], targetString: string, operator: LogicalOperator) => boolean;
|
|
@@ -1797,6 +1805,15 @@ declare interface MenuHamburgerProps {
|
|
|
1797
1805
|
disableResponsive?: boolean;
|
|
1798
1806
|
}
|
|
1799
1807
|
|
|
1808
|
+
export declare type MfaMethod = 'totp' | 'email';
|
|
1809
|
+
|
|
1810
|
+
export declare function MfaSetupModal({ isOpen, onClose }: MfaSetupModalProps): ReactElement;
|
|
1811
|
+
|
|
1812
|
+
declare interface MfaSetupModalProps {
|
|
1813
|
+
isOpen: boolean;
|
|
1814
|
+
onClose: () => void;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1800
1817
|
export declare const Minimap: default_2.FC<MinimapProps>;
|
|
1801
1818
|
|
|
1802
1819
|
export declare interface MinimapBand {
|