This commit is contained in:
2024-04-04 09:28:19 +02:00
parent e1897ca11a
commit 7f9f95ecc2
7 changed files with 101 additions and 13 deletions

View File

@@ -5,3 +5,7 @@ import { AuthenticationContext } from "../contexts";
export function useAuth() {
return React.useContext(AuthenticationContext);
}
export function getAuth() {
return React.useContext(AuthenticationContext).user;
}