supertokens-node
    Preparing search index...

    Variable verifyTOTP

    verifyTOTP: (
        tenantId: string,
        userId: string,
        totp: string,
        userContext?: Record<string, any>,
    ) => Promise<
        | { status: "OK"
        | "UNKNOWN_USER_ID_ERROR" }
        | {
            currentNumberOfFailedAttempts: number;
            maxNumberOfFailedAttempts: number;
            status: "INVALID_TOTP_ERROR";
        }
        | { retryAfterMs: number; status: "LIMIT_REACHED_ERROR" },
    > = Wrapper.verifyTOTP

    Type declaration

      • (
            tenantId: string,
            userId: string,
            totp: string,
            userContext?: Record<string, any>,
        ): Promise<
            | { status: "OK"
            | "UNKNOWN_USER_ID_ERROR" }
            | {
                currentNumberOfFailedAttempts: number;
                maxNumberOfFailedAttempts: number;
                status: "INVALID_TOTP_ERROR";
            }
            | { retryAfterMs: number; status: "LIMIT_REACHED_ERROR" },
        >
      • Parameters

        • tenantId: string
        • userId: string
        • totp: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<
            | { status: "OK"
            | "UNKNOWN_USER_ID_ERROR" }
            | {
                currentNumberOfFailedAttempts: number;
                maxNumberOfFailedAttempts: number;
                status: "INVALID_TOTP_ERROR";
            }
            | { retryAfterMs: number; status: "LIMIT_REACHED_ERROR" },
        >