I am trying to implement login system in my web app but its showing error
const handleLogin = async (e) => { e.preventDefault(); try { // Create a session using email and password const session = await account.createSession(email, password); // Only email and password should be passed here console.log('Login successful:', session); navigate('/profile'); // Redirect to profile or dashboard after successful login } catch (err) { console.error('Login failed:', err.message); setError('Login failed: ' + err.message); } }; this is my login code
Recommended threads
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?