Authentication
The React PWA Reference Storefront accesses Cortex API by using an access token. The token enables access to resources that require a registered account.
The AuthService.ts
file contains the authentication functions used to authenticate users with Cortex using OAuth2. The OAuth tokens are saved in the local storage of the web application. For authenticating subsequent Cortex requests, the tokens are retrieved and added in the header.
Related References
- Cortex Integration
- How to Authenticate a Customer in the Cortex Front-end Development documentation
- Authentication in the Cortex Back-end Development documentation