浏览器样式API
在您的应用程序中保留 __CAPGO_KEEP_0__ 代替重写自定义 passkey 流程。 navigator.credentials.create() 和 navigator.credentials.get() in your app instead of rewriting your passkey flow around a custom API.
浏览器样式API
在您的应用程序中保留 __CAPGO_KEEP_0__ 代替重写自定义 passkey 流程。 navigator.credentials.create() 和 navigator.credentials.get() in your app instead of rewriting your passkey flow around a custom API.
Add plugin config once, call
在启动期间调用,保持 WebAuthn __CAPGO_KEEP_0__ 与浏览器实现非常接近 CapacitorPasskey.autoShimWebAuthn() during bootstrap, and keep the rest of your WebAuthn code close to the browser implementation.
此插件在同步期间修补生成的 iOS 和 Android 主机项目,因此您不需要手动编辑这些文件
Platform notes included
遵循
Getting Started iOS 设置, iOS 配置, Android 配置, 和 后端笔记.
shimWebAuthn(options?) 立即安装浏览器样式 shim,支持 HTTPS 源选项。getConfiguration() 从已解析的运行时配置中读取 plugins.CapacitorPasskey.autoShimWebAuthn(options?) 读取该配置并在应用程序引导期间在一步中安装 shim。createCredential(options) 和 getCredential(options) 直接调用本机 passkey API,使用 JSON 安全的 WebAuthn payload。isSupported() 报告运行时可用性和 getPluginVersion() 返回本机实现版本标记。如果您正在使用 @capgo/capacitor-passkey 来规划身份验证和帐户流程,连接它与 使用 @capgo/capacitor-passkey 为本机能力在使用 @capgo/capacitor-passkey 中 @capgo/capacitor-social-login 为 @capgo/capacitor-social-login 的实现细节 @capgo/capacitor-native-biometric 为 @capgo/capacitor-native-biometric 的实现细节 两因素身份验证 关于两步验证的实现细节, 和 企业SSO (单点登录) 的实现细节 企业SSO (单点登录) 的实现细节