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:
parent
bb785ea459
commit
27763be864
3 changed files with 33 additions and 0 deletions
|
@ -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>;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue