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. Creating Credentials

Saving Username and Passwords

Prompting your users to save their username and password

PreviousOverviewNextCreating a Passkey

Last updated 3 months ago

This is the simplest form of credential that is available. After you have completed your sign in process you can prompt your user to save their username and password. Credential Manager will automatically surface a bottom card that will allow the user to save the credential to their Google Credential manager. This means this credential is now available across all devices that the user has their Google Account logged into.

Code :

To prompt the user to save an username and password credential use the following code

import { CredentialManager } from "credential-manager/CredentialManager";

CredentialManager.saveUsernameAndPassword(username, password);

➕
Saving an username and password
Save Username and Password