Auth0 unauthorized_client:回调 URL 新 React Native 应用程序中的不匹配错误
Auth0 unauthorized_client: Callback URL mismatch error in new React Native app
我创建了一个新的 React Native 应用程序,它将使用与我的网络应用程序相同的 Auth0 数据库。
我在 Auth0 门户中创建了该应用程序,并按照本文进行了所有必要的设置:https://auth0.com/docs/quickstart/native/react-native/00-login
即使 Auth0 门户中列出了回调 URL,但在尝试登录后,我收到以下错误:
error = unauthorized_client: Callback URL mismatch.
com.ingridtime://ingrid.auth0.com/android/com.ingridtime/callback
is not in the list
这是来自 Auth0 门户的实际回调列表:
我使用的是 React Native 和 Auth0 包的最新版本。这是我的 package.json
依赖项部分的屏幕截图:
知道这里的问题是什么吗?
想通了。问题出在我们创建的自定义登录屏幕上,其中硬编码了另一个应用程序的 ID。
我创建了一个新的 React Native 应用程序,它将使用与我的网络应用程序相同的 Auth0 数据库。
我在 Auth0 门户中创建了该应用程序,并按照本文进行了所有必要的设置:https://auth0.com/docs/quickstart/native/react-native/00-login
即使 Auth0 门户中列出了回调 URL,但在尝试登录后,我收到以下错误:
error = unauthorized_client: Callback URL mismatch. com.ingridtime://ingrid.auth0.com/android/com.ingridtime/callback is not in the list
这是来自 Auth0 门户的实际回调列表:
我使用的是 React Native 和 Auth0 包的最新版本。这是我的 package.json
依赖项部分的屏幕截图:
知道这里的问题是什么吗?
想通了。问题出在我们创建的自定义登录屏幕上,其中硬编码了另一个应用程序的 ID。