Skip to content
Snippets Groups Projects

Alex

11 files
+ 48
34
Compare changes
  • Side-by-side
  • Inline

Files

@@ -50,11 +50,11 @@ export function UserAuthContextProvider({ children }) {
}
//todo kommenter
/**
* Function will set the current user, logged into the system.
*/
useEffect(() => {
const unsubscribe = onAuthStateChanged(auth, (currentuser) => {
console.log("Auth", currentuser);
setUser(currentuser);
});
return () => {
Loading