Skip to content

Commit

Permalink
Update 02-calling-an-api.md (#10300)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfrth committed Sep 14, 2023
1 parent 124aecd commit 0f95d0e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions articles/quickstart/spa/react/02-calling-an-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ You can then include the access token in the authorization header of the API cal
Upon success, you extract the `user_metadata` property from the API response and use `setUserMetadata()` to make React aware of it.
For a more detailed example, see how to [create a `useApi` hook](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md#create-a-useapi-hook-for-accessing-protected-apis-with-an-access-token) for accessing protected APIs with an access token.
:::panel Checkpoint
Your application will show "No user metadata defined" if you have not set any `user_metadata` for the logged-in user. To further test out this integration, head to the [Users section of the Auth0 dashboard](https://manage.auth0.com/#/users) and click on the user who is logged in. Update the `user_metadata` section with a value like `{ "theme": "dark" }` and click "Save". Refresh your React application and verify that it reflects the new `user_metadata`.
:::
Expand Down

0 comments on commit 0f95d0e

Please sign in to comment.