skip to Main Content

Nextjs Firebase auth state not persisting

I have no idea why firebase auth is not persisting. My project is super simple so far, i have this sign in function. await signInWithEmailAndPassword(auth, email, password); And in the layout.tsx I have the onAuthStateChange const unsubscribe = onAuthStateChanged(auth, (user)…

VIEW QUESTION

Html – Why do I get a RefrenceError that my function is not defined?

I want to make a file with many directories such as: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="App.js"></script> </head> <body> <h1>To-do List</h1> <input type="text" name="addTask" id="addTask" placeholder="Add a new task!"> <div id="toDoContainer"></div> <input type="button" id='button' value="Add task"…

VIEW QUESTION
Back To Top
Search