Skip to content

Commit c55be8c

Browse files
author
Steve Hobbs
authored
Fix tutorial
1 parent 15d9667 commit c55be8c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

02-Calling-an-API/TUTORIAL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ app.listen(3001, () => console.log("API listening on 3001"));
8181

8282
The above API has one available endpoint, `/api/external`, that returns a JSON response to the caller. This endpoint uses the `checkJwt` middleware to validate the supplied bearer token using your tenant's [JSON Web Key Set](https://auth0.com/docs/jwks). If the token is valid, the request is allowed to continue. Otherwise, the server returns a 401 Unauthorized response.
8383

84-
:::note
85-
If you are not logged in when viewing this tutorial, the sample above will show the `domain` and `audience` values as "YOUR_TENANT" and "YOUR_API_IDENTIFIER" respectively. These should be replaced with the values from your Auth0 application.
86-
:::
87-
8884
Finally, modify `package.json` to add two new scripts: `dev` and `server`. Running the `dev` script will now start both the backend server and the serve the Angular application at the same time:
8985

9086
```json
@@ -374,7 +370,7 @@ Finally, add a link to the navigation bar. Open `src/app/nav-bar/nav-bar.compone
374370
375371
```html
376372
<header>
377-
... &nbsp;<a routerLink="external-api" *ngIf="auth.loggedIn">External API</a>
373+
... <a routerLink="external-api" *ngIf="auth.loggedIn">External API</a>
378374
</header>
379375
```
380376

0 commit comments

Comments
 (0)