Zum Inhalt springen

Anfangen

Terminalfenster
bun add @capgo/capacitor-autofill-save-password
bunx cap sync
import { SavePassword } from '@capgo/capacitor-autofill-save-password';

Speichern Sie ein Passwort in der Schlüsselkette.

import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.promptDialog({
username: 'your-username',
password: 'your-password'
});

Ein Passwort aus der Schlüsselkarte lesen. Erfordert vom Entwickler die Einrichtung einer assoziierten Domain für die App für iOS.

import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.readPassword();
export interface Options {
/**
* The username to save.
*/
username: string;
/**
* The password to save.
*/
password: string;
/**
* The url to save the password for. (For example: "console.capgo.app")
* iOS only.
*/
url?: string;
}
export interface ReadPasswordResult {
/**
* The username of the password.
*/
username: string;
/**
* The password of the password.
*/
password: string;
}

Diese Seite wurde aus dem Plugin generiert. src/definitions.tsRe-run die Synchronisierung, wenn die öffentliche API sich im Quellcode ändert.