Hello, While attempting to log in to the account, I encountered an error in the sign-in function: '[AppwriteException: Creation of a session is prohibited when a session is active].' I double-checked that the user successfully signed up or registered in the database, but when I tried to log in, that error occurred. What could be a potential issue?
export async function signIn(email, password) {
console.log(email, password);
try {
const session = await account.createEmailPasswordSession(email, password);
console.log(session);
return session;
} catch (error) {
console.log(error);
throw new Error(error);
}
}
Recommended threads
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...
- Student plan issue
I am using GitHub student plan, I even got access to appwrite's mock phone number. but when I try to use it, it says the phone number limit has reached
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...