Skip to content

Commit

Permalink
Slight amendment to the FAQ (#72)
Browse files Browse the repository at this point in the history
Explains that `undefined` might also be returned from `createAuth0Client`
  • Loading branch information
Steve Hobbs authored and luisrudge committed Jul 16, 2019
1 parent 91a8383 commit 5f94633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Below are a number of questions or issues that have arisen from using the SDK.

## Why does the `Auth0Client` object take a long time to initialize?

Sometimes the `createAuth0Client` asynchronous method can take over 30 seconds to complete. This is usually down to a configuration problem between your application, and the Auth0 application you're trying to log in with. Things to check:
Sometimes the `createAuth0Client` asynchronous method can take over 30 seconds to complete. `createAuth0Client` may also return `undefined` and produce an error when you try to access it.

This is usually down to a configuration problem between your application, and the Auth0 application you're trying to log in with. Things to check:

- Make sure that options passed to `createAuth0Client` include the correct client ID and domain values for the app you're using
- Ensure that the **Allowed Callback URLs**, **Allowed Web Origins**, and **Allowed Logout URLs** are [correctly set up in your Auth0 app settings](https://auth0.com/docs/quickstart/spa/react/#configure-callback-urls) for your application
Expand Down

0 comments on commit 5f94633

Please sign in to comment.