UNPKG

android-credential-manager

Version:

An expo module to access the new Android credential Manager. Supports username/password, Passkeys and Google Sign In. This module is built to use the suggested and latest way to sign in users through Google

20 lines (11 loc) 1.04 kB
--- description: Prompting your users to save their username and password --- # Saving Username and Passwords <figure><img src="../.gitbook/assets/image.png" alt="Save Username and Password" width="205"><figcaption><p>Saving an username and password</p></figcaption></figure> 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 <pre class="language-typescript"><code class="lang-typescript">import { CredentialManager } from "credential-manager/CredentialManager"; <strong>CredentialManager.saveUsernameAndPassword(username, password); </strong></code></pre>