🔒 (security) remove disableDevtools

Removed disableDevtools from the security features because it was redundant with the popup feature, which caused the
authentication popup to always close.
This commit is contained in:
2025-09-08 23:11:42 +07:00
parent 1899050ceb
commit 4e7b939e93
4 changed files with 0 additions and 11 deletions

View File

@ -25,9 +25,6 @@ const LoginPage = () => {
);
useEffect(() => {
// Prevent opening devtools while in authentication page
// disableDevtool();
/**
* Check if the window has an opener (i.e., it was opened by another window)
* If it does, the security checkup has passed.

View File

@ -4,7 +4,6 @@ import { redirect } from "next/navigation";
import React, { useEffect, useState } from "react";
import SecurityCheckup from "@/shared/auth/ui/SecurityCheckup";
import SecurityCheckupFailed from "@/shared/auth/ui/SecurityCheckupFailed";
import disableDevtool from "disable-devtool";
import Signup from "../ui/Signup";
const SignupPage = () => {
@ -26,9 +25,6 @@ const SignupPage = () => {
);
useEffect(() => {
// Prevent opening devtools while in authentication page
disableDevtool();
/**
* Check if the window has an opener (i.e., it was opened by another window)
* If it does, the security checkup has passed.