Initial commit

This commit is contained in:
2024-04-17 22:54:13 +02:00
commit a8fdb455f4
162 changed files with 49158 additions and 0 deletions
@@ -0,0 +1,14 @@
import { useContext } from 'react';
import { AuthContext } from './auth-context';
export const useAuth = () => {
const context = useContext(AuthContext);
if (!context) {
throw new Error(
'AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component.',
);
}
return context;
};