Skip to main content
Back to plugins
@capgo/capacitor-autofill-save-password
Tutorial
by github.com/Cap-go

Autofill Save Password

Prompt users to save passwords to device autofill for seamless login experience

Guide

Tutorial on Autofill Save Password

Using @capgo/capacitor-autofill-save-password

Prompt to display dialog for saving password to keychain from webview app.

Install

bun add @capgo/capacitor-autofill-save-password
bunx cap sync

What This Plugin Exposes

  • promptDialog - Save a password to the keychain.
  • readPassword - Read a password from the keychain. Requires the developer to setup associated domain for the app for iOS.

Example Usage

promptDialog

Save a password to the keychain.

import { SavePassword } from '@capgo/capacitor-autofill-save-password';

await SavePassword.promptDialog({
  username: 'your-username',
  password: 'your-password'
});

readPassword

Read a password from the keychain. Requires the developer to setup associated domain for the app for iOS.

import { SavePassword } from '@capgo/capacitor-autofill-save-password';

await SavePassword.readPassword();

Full Reference