diff --git a/12MegaBlog/src/appwrite/auth.js b/12MegaBlog/src/appwrite/auth.js index cc7b1f6..a9bb4c3 100644 --- a/12MegaBlog/src/appwrite/auth.js +++ b/12MegaBlog/src/appwrite/auth.js @@ -30,7 +30,7 @@ export class AuthService { async login({email, password}) { try { - return await this.account.createEmailSession(email, password); + return await this.account.createEmailPasswordSession(email, password); } catch (error) { throw error; }