auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
61 stars 41 forks source link

Multiple prompt on every call back of login and logout #283

Closed kapilb145 closed 1 year ago

kapilb145 commented 1 year ago

Checklist

Description

In Android, When user logged in or logged out the call back url prompt two App icons for handling that call back.

Reproduction

  1. final Credentials credentials = await auth0.webAuthentication(scheme: appScheme).login();
  2. await auth0.webAuthentication(scheme: appScheme).logout();

Additional context

No response

auth0_flutter version

auth0_flutter: ^1.1.0

Flutter version

3.10.5

Platform

Android

Platform version(s)

33

Widcket commented 1 year ago

Hi @kapilb145, thanks for raising this.

@poovamraj could you please take a look?

poovamraj commented 1 year ago

@kapilb145 Can you share the following details.

  1. The callback URL you are using
  2. The custom scheme you are using (This can be found in app/build.gradle - next to auth0Scheme)
  3. The results for your package name when you run this command - adb shell dumpsys package r

The last command will give us all the Activities in your application that is using the intent to open your application. We are sure there is another Activity in your application that uses the same intent and this is why you are seeing 2 icons.

kapilb145 commented 1 year ago

@poovamraj This turned out to be an issue with the manifest file. We need to support two different Auth0 tenants and the single manifest entry didn't solve for that. We were able to use the information provided on this issue (https://github.com/auth0/auth0-flutter/issues/265#issuecomment-1568744998) to resolve our problem. This issue can be closed. Thank you for your support