source: frontend/src/Components/LoginCallback.js

Last change on this file was 0f5aa27, checked in by darsov2 <62809499+darsov2@…>, 8 months ago

ouath, mailing impl

  • Property mode set to 100644
File size: 590 bytes
Line 
1import React, { useEffect } from "react";
2import { useLocation, useNavigate } from "react-router-dom";
3import useLogin from "./Hooks/User/useLogin";
4
5const LoginCallbackComponent = () => {
6 const location = useLocation();
7 const navigator = useNavigate();
8 const { handleLoginCallback } = useLogin();
9
10 useEffect(() => {
11 // Call a function to handle the callback and extract data
12 handleLoginCallback();
13 navigator("/home");
14 }, []);
15
16 return (
17 <div>
18 Redirecting...
19 </div>
20 );
21};
22
23export default LoginCallbackComponent;
Note: See TracBrowser for help on using the repository browser.