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.26k stars 381 forks source link

Sigin Signup Not working #48

Open viditpagi123 opened 8 months ago

viditpagi123 commented 8 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 8 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 8 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 8 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 7 months ago

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

anantiikenna commented 5 months 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;
  }
}
anantiikenna commented 4 months ago

Mine works, you can check this link for reference https://github.com/anantiikenna/socio_max

anantiikenna commented 4 months ago

@anantiikenna Saw it .. i noticed you changed the theme color from lavender to orange .. its cool

Thanks

adityaranjan2005 commented 3 months ago

@anantiikenna, editor isn't recognizing createEmailPasswordSession

image

anantiikenna commented 3 months ago

mine uses the updated Appwrite v14.0.1 and kindly share the error message it generated on your console.