LogoLogo
Github
  • 👋Welcome to Android-Credential-Manager Docs
  • 🖐️Getting Started
    • 🔧Installation
    • 📃Digitial Asset Linking
  • ➕Creating Credentials
    • Overview
    • Saving Username and Passwords
    • Creating a Passkey
    • Error Handling
  • 🧑‍💻Login Users
    • Overview
    • UserName and Password
    • Passkeys
    • Google Sign In
    • Error Handling
    • Performance Improvements
Powered by GitBook

2025 GuhanSenSam

On this page
  1. Login Users

UserName and Password

Allows users to sign in with their save username and passwords

Use this provider if you have the option for users to sign in with their username and password. This provider will present the user the option to choose any saved password linked to this app or the respective website through the Digital Asset Linking.

import {
  UsernamePasswordProvider,
} from "credential-manager/loginProviders/LoginProviders";
import { LoginProvider } from "credential-manager/loginProviders/types";

const provider: LoginProvider = new UsernamePasswordProvider({
      allowedUserIds: ["guhansensam"], // A list of usernames that are allowed to login
      autoSelect: true, // If only one password is present it is auto chosen
    });

PreviousOverviewNextPasskeys

Last updated 3 months ago

🧑‍💻