saleor / storefront

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.
https://storefront.saleor.io
BSD 3-Clause "New" or "Revised" License
1.01k stars 585 forks source link

Account login not working #1064

Open dapetri opened 8 months ago

dapetri commented 8 months ago

Is it me, or is the account login and visualisation of the order history not working yet?

typeofweb commented 8 months ago

It works just fine, I just checked.

Could you be more descriptive when reporting an issue? What's not working? What's the problem? What is the result and what did you expect? What are the steps to reproduce?

dapetri commented 8 months ago

Thank you for your answer @mmiszy. Here a more detailed description:

I cloned the repository and checked out the main branch. Then I set in the .env file NEXT_PUBLIC_SALEOR_API_URL to point to the graphql API of my Saleor Cloud test environment, where I also set up Stripe payment provider in test and setup the SMTP app. I then locally started the development server. All the products of the Saleor Cloud test environment appear correctly and the checkout and payment procedure work in Guest mode, the orders appear in the Saleor Dashboard and I receive the order confirmation mails.

When I try in "create account mode" the order goes through correctly, the same way as in guest mode. I also receive an "Account activation" mail. However, when I try to click on the activation link in the mail, It brings me to the checkout page where it shows the message: "We couldn't fetch information about your checkout". If I the go back to the storefront and try to login with the login information that I previously chose, nothing happens after I press the Log In button.

The behaviour is the same for the deployed storefront on vercel.