浏览器风格API
保持 navigator.credentials.create() 并 navigator.credentials.get() 在您的应用程序中代替重写自定义API的密码流程。
浏览器风格API
保持 navigator.credentials.create() 并 navigator.credentials.get() 在您的应用程序中代替重写自定义API的密码流程。
最小化应用程序更改
添加插件配置一次, CapacitorPasskey.autoShimWebAuthn() during bootstrap, and keep the rest of your WebAuthn code close to the browser implementation.
并将WebAuthn__CAPGO_KEEP_0__保留在浏览器实现附近。
构建时本机编程
插件在同步期间将生成的iOS和Android宿主项目进行了修补,因此您不需要手动编辑这些文件。
平台说明 遵循, iOS 配置, Android 配置, 和 后端笔记.
shimWebAuthn(options?) 立即安装浏览器样式 shim,带有可选的 HTTPS 源站重写。getConfiguration() 读取从 plugins.CapacitorPasskey.autoShimWebAuthn(options?) 读取该配置并在应用程序引导期间在一步中安装 shim。createCredential(options) 和 getCredential(options) 直接调用本机 passkey API,使用 JSON 安全的 WebAuthn 支付载荷。isSupported() 报告运行时可用性 getPluginVersion() __CAPGO_KEEP_0__: __CAPGO_KEEP_0__