Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
This PR adds supports to handle authentication via account-js and keeps the storefront up-to-date with the latest authentication plugin.
Breaking changes
This version uses account-js to handle authentication. The older accounts created with Hydra/Identity should work. But things like reset password emails that were sent before the update would no longer work.
Testing
Create some accounts with the old hydra/identity setup.
Pull this branch, link it as a plugin.
Try to access old accounts, those accounts should be accessible.
Test signup flow -> click create account, enter email/password, hit Sign Up, this should create an account.
Test login flow -> enter email password, the user should be logged in.
Test update password flow -> after login, reset password, logout, login with new password.
Test forgot password flow -> setup email (or atleast console.log them), try to login, hit Forgot Password, enter email address, get the reset link, click on that, enter new password, try to login with that password
Impact: major Type: feature
This PR adds supports to handle authentication via
account-js
and keeps the storefront up-to-date with the latest authentication plugin.Breaking changes
This version uses
account-js
to handle authentication. The older accounts created with Hydra/Identity should work. But things like reset password emails that were sent before the update would no longer work.Testing