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
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- [SOLVED] React Native Appwrite SDK not w...
So I'm trying to generate a unique ID using the ID.unique() and its generating properly, but its saying its longer than 36 characters but it isnt.. ```typescri...