@auth0/auth0-spa-js 1.18.0 → 1.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,7 +31,7 @@ Auth0 SDK for Single Page Applications using [Authorization Code Grant Flow with
31
31
  From the CDN:
32
32
 
33
33
  ```html
34
- <script src="https://cdn.auth0.com/js/auth0-spa-js/1.18/auth0-spa-js.production.js"></script>
34
+ <script src="https://cdn.auth0.com/js/auth0-spa-js/1.19/auth0-spa-js.production.js"></script>
35
35
  ```
36
36
 
37
37
  Using [npm](https://npmjs.org):
@@ -48,6 +48,28 @@ yarn add @auth0/auth0-spa-js
48
48
 
49
49
  ## Getting Started
50
50
 
51
+ ### Auth0 Configuration
52
+
53
+ Create a **Single Page Application** in the [Auth0 Dashboard](https://manage.auth0.com/#/applications).
54
+
55
+ > **If you're using an existing application**, verify that you have configured the following settings in your Single Page Application:
56
+ >
57
+ > - Click on the "Settings" tab of your application's page.
58
+ > - Ensure that "Token Endpoint Authentication Method" under "Application Properties" is set to "None"
59
+ > - Scroll down and click on the "Show Advanced Settings" link.
60
+ > - Under "Advanced Settings", click on the "OAuth" tab.
61
+ > - Ensure that "JsonWebToken Signature Algorithm" is set to `RS256` and that "OIDC Conformant" is enabled.
62
+
63
+ Next, configure the following URLs for your application under the "Application URIs" section of the "Settings" page:
64
+
65
+ - **Allowed Callback URLs**: `http://localhost:3000`
66
+ - **Allowed Logout URLs**: `http://localhost:3000`
67
+ - **Allowed Web Origins**: `http://localhost:3000`
68
+
69
+ > These URLs should reflect the origins that your application is running on. **Allowed Callback URLs** may also include a path, depending on where you're handling the callback (see below).
70
+
71
+ Take note of the **Client ID** and **Domain** values under the "Basic Information" section. You'll need these values in the next step.
72
+
51
73
  ### Creating the client
52
74
 
53
75
  Create an `Auth0Client` instance before rendering or initializing your application. You should only have one instance of the client.