Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / components / hooks / useAuthentication.ts
blob62cc8ee6bf979512089c6b06e24d222d457840b9
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;
9 };
11 export default useAuthentication;