Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ability to get saved password options - getCredential #32

Open
Tkko opened this issue Dec 20, 2024 · 0 comments
Open

feat: Ability to get saved password options - getCredential #32

Tkko opened this issue Dec 20, 2024 · 0 comments

Comments

@Tkko
Copy link
Owner

Tkko commented Dec 20, 2024

Feature Request: Add Support for getCredential Method in Android Credential Manager

Objective:

Implement the getCredential method to enable users to access and select saved passwords from the Android Credential Manager, streamlining the sign-in process.

Tasks:

  1. Investigate Android Credential Manager API:

    • Review the documentation for the getCredential method.
  2. Create Platform-Specific Code:

    • Add a new method to SmartAuth for Android that calls getCredential.
    • Handle interactions with the native Android API using Pigeon.
    • Ensure seamless fallback behavior for unsupported Android versions.
  3. Define Dart API:

    • Expose a clean Dart API for the feature in SmartAuth.
    • Example:
      Future<Credential?> getCredential();
  4. Error Handling and Edge Cases:

    • Handle scenarios like user cancellation, or permission denial.
    • Return meaningful errors to the Flutter side when exceptions occur.
  5. Documentation:

    • Update the package documentation to include:
      • Overview of the feature.
      • Example code for using getCredential.
      • Requirements for using the feature (e.g., API level).
  6. Sample App Update:

    • Update the sample app in the package to demonstrate the usage of getCredential.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant