我正在使用 CustomTabsIntent 通过 Auth0 启动社交登录,但成功登录后,我有 2 个选项来启动应用程序。
这是我成功登录和注册后得到的`
这是我的代码。
final Uri.Builder uriBuilder = new Uri.Builder();
uriBuilder.scheme("https")
.authority(getString(R.string.com_auth0_domain))
.appendPath("authorize")
.appendQueryParameter("code_challenge_method", "S256")
.appendQueryParameter("code_challenge", codeChallenge)
.appendQueryParameter("audience", getString(R.string.auth0_audience))
.appendQueryParameter("scope", "openid profile offline_access email")
.appendQueryParameter("client_id", getString(R.string.com_auth0_client_id))
.appendQueryParameter("redirect_uri", getString(R.string.auth0_callback))
.appendQueryParameter("response_type", "code")
.appendQueryParameter("prompt", "login")
.appendQueryParameter("connection", connection);
CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder()
.addDefaultShareMenuItem()
.setToolbarColor(this.getResources()
.getColor(R.color.colorPrimary))
.setShowTitle(true)
.build();
openUrlForResult(customTabsIntent, uriBuilder.build().toString(), 1001);`
我需要知道为什么它显示 2 个选项来启动同一个应用程序,