From 5f946338af92183298d93161e9f181b823cd2ec2 Mon Sep 17 00:00:00 2001 From: Steve Hobbs Date: Tue, 16 Jul 2019 17:36:57 +0100 Subject: [PATCH] Slight amendment to the FAQ (#72) Explains that `undefined` might also be returned from `createAuth0Client` --- FAQ.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 3f9ae1ad9..2a0fdcf37 100644 --- a/FAQ.md +++ b/FAQ.md @@ -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