adrianhajdin / social_media_app

Build a modern social app with a stunning UI with a native mobile feel, a special tech stack, an infinite scroll feature, and amazing performance using React JS, Appwrite, TypeScript, and more.
https://jsmastery.pro
1.06k stars 305 forks source link

Sigin Signup Not working #48

Open viditpagi123 opened 3 months ago

viditpagi123 commented 3 months ago

While Done with the signin and signup part after doing both activities its giving failed to sign in and Signup

Chirag-2003 commented 3 months ago

well a solution that works is you have to downgrade your appwrite, just go to terminal and run the following command - npm install appwrite@13.0.2 It'll work, had the same issue as you

viditpagi123 commented 3 months ago

Yup did the same and it's working fine now

On Thu, Mar 21, 2024, 11:11 PM Chirag-2003 @.***> wrote:

well a solution that works is you have to downgrade your appwrite, just go to terminal and run the following command - npm install @.*** It'll work, had the same issue as you

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/social_media_app/issues/48#issuecomment-2013153147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATTZBZRFRFP5Q7YPIO3ZXCLYZMLUFAVCNFSM6AAAAABE7NCNJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGE2TGMJUG4 . You are receiving this because you authored the thread.Message ID: @.***>

viditpagi123 commented 3 months ago

well a solution that works is you have to downgrade your appwrite, just go to terminal and run the following command - npm install appwrite@13.0.2 It'll work, had the same issue as you

Bro Posts are not getting saved in appwrite

KasakAnand07 commented 2 months ago

In AuthLayout.tsx page side-img.svg is not working. Can you please help me to solve this issue?

anantiikenna commented 3 weeks ago

Appwrite has been updated so the former account.createEmailSession(user.email, user.password)

has change to account.createEmailPasswordSession(user.email, user.password).

so the updated code for signInAccount in the api.ts file will be


export async function signInAccount(user: {email: string; password: string;}) { 
  try {
    const session = await account.createEmailPasswordSession(user.email, user.password);

    return session;

  } catch (error) {
      console.log(error);
      return error;
  }
}