👔 complete handler callback
Complete the logic checking and loading on the OAuth module callback handler.
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import Login from "@/features/auth/ui/Login";
|
||||
import SecurityCheckup from "@/features/auth/ui/SecurityCheckup";
|
||||
import SecurityCheckupFailed from "@/features/auth/ui/SecurityCheckupFailed";
|
||||
import SecurityCheckup from "@/shared/auth/ui/SecurityCheckup";
|
||||
import SecurityCheckupFailed from "@/shared/auth/ui/SecurityCheckupFailed";
|
||||
|
||||
const LoginPage = () => {
|
||||
/**
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
import { redirect } from "next/navigation";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import SecurityCheckup from "@/features/auth/ui/SecurityCheckup";
|
||||
import SecurityCheckupFailed from "@/features/auth/ui/SecurityCheckupFailed";
|
||||
import SecurityCheckup from "@/shared/auth/ui/SecurityCheckup";
|
||||
import SecurityCheckupFailed from "@/shared/auth/ui/SecurityCheckupFailed";
|
||||
import disableDevtool from "disable-devtool";
|
||||
import Signup from "../ui/Signup";
|
||||
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
const SecurityCheckup = () => {
|
||||
return (
|
||||
<div className="flex justify-center">
|
||||
<div className="max-w-[60vh]">
|
||||
<h1 className="mt-[20vh] text-2xl text-center">Please wait...</h1>
|
||||
<p className="mt-4 text-sm text-center text-neutral-400">
|
||||
We want to ensure a secure authentication environment before
|
||||
proceeding for your safety.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SecurityCheckup;
|
||||
@ -1,19 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
const SecurityCheckupFailed = () => {
|
||||
return (
|
||||
<div className="flex justify-center">
|
||||
<div className="max-w-[60vh]">
|
||||
<h1 className="mt-[20vh] text-2xl text-center text-red-400">
|
||||
Your browser is not secure
|
||||
</h1>
|
||||
<p className="mt-4 text-sm text-center text-neutral-400">
|
||||
Sorry, we had to stop the authentication process and return you to the
|
||||
home page because your browser environment is not secure.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SecurityCheckupFailed;
|
||||
Reference in New Issue
Block a user