开始
复制一个包含安装步骤和此插件的完整Markdown指南的设置提示。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-autofill-save-password`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/autofill-save-password/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
您可以使用我们的 AI 助手设置来安装插件。将 Capgo 技能添加到您的 AI 工具中,使用以下命令:
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.如果您prefer手动设置,安装插件并运行以下命令,然后遵循以下平台特定的说明:
bun add @capgo/capacitor-autofill-save-passwordbunx cap syncimport { SavePassword } from '@capgo/capacitor-autofill-save-password';API 简介
API 简介promptDialog
提示对话框将密码保存到钥匙串.
import { SavePassword } from '@capgo/capacitor-autofill-save-password';
await SavePassword.promptDialog({ username: 'your-username', password: 'your-password'});readPassword
读取密码从钥匙串读取密码。需要开发者为 iOS 应用设置关联域.
import { SavePassword } from '@capgo/capacitor-autofill-save-password';
const result = await SavePassword.readPassword();// The result holds sensitive values: use it without logging it.类型参考
类型参考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
读取密码结果export interface ReadPasswordResult { /** * The username of the password. */ username: string; /** * The password of the password. */ password: string;}真实来源
真实来源本页面由插件生成 src/definitions.ts. 当公共API上游更改时,请重新同步。
继续从开始
继续从开始如果您正在使用 开始 为了规划身份验证和账户流程,连接它 使用@capgo/capacitor-autofill-save-password 为@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实现细节,并且 双因素身份验证 为双因素身份验证实现细节。