Skip to content

시작하기

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

키 체인에 암호를 저장하세요.

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

readPassword

readPassword

키 체인에서 암호를 읽습니다. iOS 앱에 대한 개발자가 설정해야 하는 관련 도메인이 필요합니다.

import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.readPassword();

타입 참조

타입 참조

Options

옵션
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;
}

ReadPasswordResult

ReadPasswordResult
export interface ReadPasswordResult {
/**
* The username of the password.
*/
username: string;
/**
* The password of the password.
*/
password: string;
}

진실의 근원

진실의 근원

이 페이지는 플러그인의 src/definitions.ts. upstream에서 pubic API이 변경되었을 때 다시 싱크를 실행하세요.