Last change
on this file since efaa053 was 0f5aa27, checked in by darsov2 <62809499+darsov2@…>, 9 months ago |
ouath, mailing impl
|
-
Property mode
set to
100644
|
File size:
590 bytes
|
Line | |
---|
1 | import React, { useEffect } from "react";
|
---|
2 | import { useLocation, useNavigate } from "react-router-dom";
|
---|
3 | import useLogin from "./Hooks/User/useLogin";
|
---|
4 |
|
---|
5 | const 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 |
|
---|
23 | export default LoginCallbackComponent; |
---|
Note:
See
TracBrowser
for help on using the repository browser.