Generate Token through Auth0
This commit is contained in:
18
front/src/pages/AuthCallback.tsx
Normal file
18
front/src/pages/AuthCallback.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import AuthService from '../hooks/AuthenticationHooks';
|
||||
|
||||
function AuthCallback() {
|
||||
const { useGetAccessToken } = AuthService;
|
||||
|
||||
const { token } = useGetAccessToken();
|
||||
|
||||
useEffect(() => {
|
||||
if (token) {
|
||||
window.location.href = '/';
|
||||
}
|
||||
}, [token]);
|
||||
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
export default AuthCallback;
|
||||
@ -1,5 +1,3 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
function PluginHistory() {
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user