1 import { useContext } from 'react';
3 import type { PrivateAuthenticationStore } from '../containers/app/interface';
4 import AuthenticationContext from '../containers/authentication/authenticationContext';
6 const useAuthentication = () => {
7 // Force private authentication store because the public app is a special case
8 return useContext(AuthenticationContext) as PrivateAuthenticationStore;
11 export default useAuthentication;