Generate Token through Auth0

This commit is contained in:
Charles Bochet
2023-01-27 12:12:04 +01:00
parent 54acb16db8
commit 8e0dc44bf6
21 changed files with 3616 additions and 2344 deletions

View File

@ -0,0 +1,10 @@
import AuthService from '../hooks/AuthenticationHooks';
function RequireAuth({ children }: { children: JSX.Element }): JSX.Element {
const { redirectIfNotLoggedIn } = AuthService;
redirectIfNotLoggedIn();
return children;
}
export default RequireAuth;