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
- Appwrite sites Issue
Hello Appwrite Support, I'm experiencing a connectivity issue with my Appwrite Cloud project hosted in the **Frankfurt (fra)** region. **Project details** * ...
- My website is not loading for foreigners
I use my own domain, but I think it is set up correctly. My code is written in HTML+CSS+JS. Please help me๐๐
- bulk actions
Are bulk actions restricted from web sdk? I can't seem to be able to use `upsertRows` method for **tablesDB**