Skip to content

Commit 6067675

Browse files
Merge pull request #99 from lukeoliff/remove-local-storage
MVP React QS Update: Remove local storage
2 parents 4d9efbc + e447be8 commit 6067675

36 files changed

Lines changed: 85684 additions & 18609 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
node_modules
33
.env
4-
auth0-variables.js
4+
**/auth0-variables.js
55
npm-debug.log
6+
.editorconfig

01-Login/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ FROM node:8.7-alpine
22

33
WORKDIR /home/app
44

5-
RUN npm install -g create-react-app
65
ADD package.json /home/app
76
RUN npm install
87
ADD . /home/app

01-Login/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
# Auth0 React Login
22

3-
This sample demonstrates how to add authentication to a React application with Auth0. The sample makes use of Auth0's hosted login page which provides centralized authentication. The sample uses create-react-app.
3+
This sample demonstrates how to add authentication to a React application with Auth0. The sample makes use of Auth0's hosted login page which provides centralized authentication.
44

55
## Getting Started
66

7-
If you haven't already done so, [sign up](https://auth0.com) for your free Auth0 account and create a new client in the [dashboard](https://manage.auth0.com). Find the **domain** and **client ID** from the settings area and add the URL for your application to the **Allowed Callback URLs** box. If you are using the server provided by the create-react-app, that URL is `http://localhost:3000/callback`.
7+
If you haven't already done so, [sign up](https://auth0.com) for your free Auth0 account and create a new client in the [dashboard](https://manage.auth0.com). Find the **domain** and **client ID** from the settings area and add the URL for your application to the **Allowed Callback URLs** box. The default URL is `http://localhost:3000/callback`. Also configure **Allowed Web Origins** to the default application URL `http://localhost:3000`.
88

9-
Clone the repo or download it from the React quickstart page in Auth0's documentation. Install create-react-app globally and the dependencies for the app.
9+
Clone the repo or download it from the React quickstart page in Auth0's documentation.
10+
11+
Open the demo.
1012

1113
```bash
12-
npm install -g create-react-app
1314
cd 01-Login
14-
npm install
1515
```
1616

17-
> **Note:** If you are not using create-react-app but are using Babel, you need to add the `stage-0` preset.
17+
Install the dependencies for the app.
18+
19+
```
20+
npm install
21+
```
1822

1923
## Set the Client ID and Domain
2024

2125
If you download the sample from the quickstart page, it will come pre-populated with the **client ID** and **domain** for your application. If you clone the repo directly from Github, rename the `auth0-variables.js.example` file to `auth0-variables.js` and provide the **client ID** and **domain** there. This file is located in `src/Auth/`.
2226

2327
## Run the Application
2428

25-
The development server that comes with create-react-app can be used to serve the application.
29+
The demo comes ready to serve locally using react-scripts.
2630

2731
```bash
2832
npm start

0 commit comments

Comments
 (0)