내용으로 건너뛰기

Getting Started

GitHub

설치

설치

Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 기능을 추가하려면 다음 명령어를 사용하세요:

터미널 창
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

다음과 같은 프롬프트를 사용하세요:

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-autofill-save-password` plugin in my project.

만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:

터미널 창
bun add @capgo/capacitor-autofill-save-password
bunx cap sync

Import

Import
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'
});

키 체인에서 암호 읽기. 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;
}
export interface ReadPasswordResult {
/**
* The username of the password.
*/
username: string;
/**
* The password of the password.
*/
password: string;
}

이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.

Getting Started에서 계속하기

“Getting Started에서 계속하기” 섹션

Capacitor를 사용 중이라면 Getting Started 인증 및 계정 흐름을 계획하고 연결하려면 Using @capgo/capacitor-autofill-save-password native 기능을 위한 @capgo/capacitor-autofill-save-password @capgo/capacitor-social-login @capgo/capacitor-social-login 구현 세부 사항 @capgo/capacitor-passkey @capgo/capacitor-passkey 구현 세부 사항 @capgo/capacitor-native-biometric @capgo/capacitor-native-biometric 구현 세부 사항 두 단계 인증 두 단계 인증 구현 세부 사항