1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added session for auth

This commit is contained in:
Fedor Katurov 2022-01-21 17:56:17 +07:00
parent bb785ea459
commit 27763be864
3 changed files with 33 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import { EMPTY_USER } from '~/constants/auth';
import { useAuth } from '~/hooks/auth/useAuth';
import { useMessageEventReactions } from '~/hooks/auth/useMessageEventReactions';
import { useRestorePasswordRedirect } from '~/hooks/auth/useRestorePasswordRedirect';
import { useSessionCookie } from '~/hooks/auth/useSessionCookie';
interface AuthProviderContextType extends ReturnType<typeof useAuth> {}
@ -24,6 +25,7 @@ export const AuthProvider: FC = observer(({ children }) => {
useMessageEventReactions();
useRestorePasswordRedirect();
useSessionCookie();
return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
});