mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 02:07:33 +00:00
Scope
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import log from "@/next/log";
|
||||
import { customAPIHost } from "@/next/origins";
|
||||
import type { BaseAppContextT } from "@/next/types/context";
|
||||
import {
|
||||
checkPasskeyVerificationStatus,
|
||||
passkeySessionExpiredErrorMessage,
|
||||
@@ -74,23 +73,18 @@ interface VerifyingPasskeyProps {
|
||||
email: string | undefined;
|
||||
/** Called when the user wants to redirect again. */
|
||||
onRetry: () => void;
|
||||
/**
|
||||
* The appContext.
|
||||
*
|
||||
* Needs to be explicitly passed since this component is used in a package
|
||||
* where the pages are not wrapped in the provider.
|
||||
*/
|
||||
appContext: BaseAppContextT;
|
||||
/** Perform the (possibly app specific) logout sequence. */
|
||||
logout: () => void;
|
||||
setDialogBoxAttributesV2: (attrs: DialogBoxAttributesV2) => void;
|
||||
}
|
||||
|
||||
export const VerifyingPasskey: React.FC<VerifyingPasskeyProps> = ({
|
||||
passkeySessionID,
|
||||
email,
|
||||
onRetry,
|
||||
appContext,
|
||||
logout,
|
||||
setDialogBoxAttributesV2,
|
||||
}) => {
|
||||
const { logout, setDialogBoxAttributesV2 } = appContext;
|
||||
|
||||
type VerificationStatus = "waiting" | "checking" | "pending";
|
||||
const [verificationStatus, setVerificationStatus] =
|
||||
useState<VerificationStatus>("waiting");
|
||||
|
Reference in New Issue
Block a user