Simplify infrastructure to one container
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { useGetAccessToken } from '../hooks/AuthenticationHooks';
|
||||
|
||||
function AuthCallback() {
|
||||
const { token } = useGetAccessToken();
|
||||
|
||||
useEffect(() => {
|
||||
if (token) {
|
||||
window.location.href = '/';
|
||||
}
|
||||
}, [token]);
|
||||
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
export default AuthCallback;
|
||||
Reference in New Issue
Block a user