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
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?