This is a sample consumer app built by Descope to showcase the Descope Flows functionality. To experience the sign-up or sign-in experience - click on Login. While logged in, you can experience the step-up authentication flow by adding a T-shirt to your cart and then trying to check out (no credit card required).
In order to launch this app:
git clone git@github.com:descope-sample-apps/b2c-retail-sample-app.git
REACT_APP_DESCOPE_PROJECT_ID="YOUR PROJECT ID" // Required for Descope authentication
REACT_APP_DESCOPE_SIGN_IN_FLOW_ID="sign-up-or-in" // Optional, if you would like to use a flow other than sign-up-or-in
REACT_APP_DESCOPE_MANAGEMENT_KEY="YOUR MANAGEMENT KEY" // Optional, if you would like to run E2E tests
You can get your project-id here. You can get this flow-id from the Flows page here.
You can use npm or yarn, but we recommend using yarn. If it isn't already installed on your machine, the instructions on how to do so can be found here. After yarn is installed, run this command:
yarn install
Run this command to start the app:
yarn start
Browse to https://localhost:3000
To run Jest unit tests:
yarn test
To run Cypress E2E tests:
yarn run cypress open
To learn more please see the Descope Documentation and API reference page.
If you need help you can contact us
The Tee-Hee-Tees app is licensed for use under the terms and conditions of the MIT license Agreement.