
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
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- Is it possible to cancel an ongoing file...
When uploading a file to storage, is there a way to cancel the upload in progress so the file is not saved or partially stored?
