hiteshchoudhary / chai-aur-react

chai aur react series on youtube
7.72k stars 1.01k forks source link

Appwrite createEmailSession is not a function #104

Open Vikas-Kumar-Sahu opened 5 months ago

Vikas-Kumar-Sahu commented 5 months ago

WhatsApp Image 2024-04-22 at 8 15 41 PM

pritamduttaofficial commented 5 months ago

Go to store.js where the redux store is configured. There you must define the reducers to the store. So specify the reducer and name of that reducer in an object to the reducer key. For Eg: If the name of the reducer is auth and the slice is authSlice, then provide them as key-value pairs to the reducer

const store = configureStore({ reducer: { auth: authSlice }, });

Vikas-Kumar-Sahu commented 5 months ago

I already given that, the problem is createEmailSession does't work if you have any solution regardin this, how to solve this then please inform me ....

SamidulSk commented 4 months ago

same problem 🙃, did you fix it brother??

Aditiyasingh07 commented 4 months ago

you can use (createEmailPasswordSession)

PriyanshuTrivedi07 commented 4 months ago

same problem 🙃, did you fix it brother??

this error is showing because the function will change to "account.createEmailPasswordSession" in the latest version of appwrite so you can use "createEmailPasswordSession" instead e.g. :

return await this.account.createEmailPasswordSession(email, password);

Hope this helps 👍🏻

Lovethakur1 commented 2 months ago

thanks

akku2005 commented 1 month ago

i am facing the same error WhatsApp Image 2024-08-04 at 17 20 40_4c2642c2

Aditiyasingh07 commented 1 month ago

you can use (account.createEmailPasswordSession)

habibullahqureshe commented 1 week ago

finally fix the bug