Summary
In this chapter, I added support for users to identify themselves to the SportsStore application using their Google account:
- The OAuth protocol allows users to authenticate themselves without providing their credentials to the application.
- Most major platforms offer an OAuth service, including Google, and there is a registration process to perform before the application can send OAuth requests.
- There are differences in the data provided by OAuth services, but these are normalized by the
Passport
authentication package. - Once the user has associated their Google credentials with a SportsStore order, their address will be loaded automatically when checking out in the future.
In the next chapter, I will add administration tools that manage the SportsStore product catalog and change the order shipping status.