reactioncommerce / example-storefront

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.
https://www.mailchimp.com/developer/open-commerce
Apache License 2.0
608 stars 288 forks source link

feat: breaking use account-js for authentication #779

Closed Akarshit closed 3 years ago

Akarshit commented 3 years ago

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

  1. Create some accounts with the old hydra/identity setup.
  2. Pull this branch, link it as a plugin.
  3. Try to access old accounts, those accounts should be accessible.
  4. Test signup flow -> click create account, enter email/password, hit Sign Up, this should create an account.
  5. Test login flow -> enter email password, the user should be logged in.
  6. Test update password flow -> after login, reset password, logout, login with new password.
  7. 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
rc-publisher commented 3 years ago

:tada: This PR is included in version 5.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: