tsc
This commit is contained in:
parent
8d30bfbefa
commit
225278adb7
|
@ -150,7 +150,7 @@ export default function Credentials({ appContext, appName }: PageProps) {
|
||||||
id,
|
id,
|
||||||
twoFactorSessionID,
|
twoFactorSessionID,
|
||||||
passkeySessionID,
|
passkeySessionID,
|
||||||
} = await loginViaSRP(srpAttributes, kek);
|
} = await loginViaSRP(ensure(srpAttributes), kek);
|
||||||
setIsFirstLogin(true);
|
setIsFirstLogin(true);
|
||||||
if (passkeySessionID) {
|
if (passkeySessionID) {
|
||||||
const sessionKeyAttributes =
|
const sessionKeyAttributes =
|
||||||
|
@ -195,7 +195,8 @@ export default function Credentials({ appContext, appName }: PageProps) {
|
||||||
id,
|
id,
|
||||||
isTwoFactorEnabled: false,
|
isTwoFactorEnabled: false,
|
||||||
});
|
});
|
||||||
setData(LS_KEYS.KEY_ATTRIBUTES, ensure(keyAttributes));
|
if (keyAttributes)
|
||||||
|
setData(LS_KEYS.KEY_ATTRIBUTES, keyAttributes);
|
||||||
return keyAttributes;
|
return keyAttributes;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ export interface VerifyMasterPasswordFormProps {
|
||||||
) => void;
|
) => void;
|
||||||
buttonText: string;
|
buttonText: string;
|
||||||
submitButtonProps?: ButtonProps;
|
submitButtonProps?: ButtonProps;
|
||||||
getKeyAttributes?: (kek: string) => Promise<KeyAttributes>;
|
getKeyAttributes?: (kek: string) => Promise<KeyAttributes | undefined>;
|
||||||
srpAttributes?: SRPAttributes;
|
srpAttributes?: SRPAttributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue