Skip to content

Tauri plugin that enables Tauri applications to call macOS native Passkey registration and login APIs, with optional support for returning the Passkey PRF extension output.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

yminghua/tauri-plugin-macos-passkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tauri-plugin-macos-passkey

Crates.io Version Crates.io Downloads License: MIT OR Apache-2.0 Tauri 2.0 macOS 15+

A Tauri plugin that lets your Tauri app call macOS native Passkey APIs for registration and login, with optional support for returning the Passkey PRF extension output.

Setup

For detailed setup instructions, see the tauri-passkey-demo repository.

APIs

register_passkey

Signature (frontend via invoke)

invoke("plugin:macos-passkey|register_passkey", {
  domain: string,
  challenge: number[],
  username: string,
  userId: number[],
  salt: number[]  // pass [] to skip PRF
})

Returns

{
  id: string,
  raw_id: string,
  client_data_json: string,
  attestation_object: string,
  prf_output: number[]  // empty if PRF skipped
}

login_passkey

Signature (frontend via invoke)

invoke("plugin:macos-passkey|login_passkey", {
  domain: string,
  challenge: number[],
  salt: number[]  // pass [] to skip PRF
})

Returns

{
  id: string,
  raw_id: string,
  client_data_json: string,
  authenticator_data: string,
  signature: string,
  user_handle: string,
  prf_output: number[]  // empty if PRF skipped
}

Notes

  • macOS version: Requires macOS 15 or later.
  • PRF Output: If you don’t need PRF, pass an empty salt ([]) and the plugin will skip the PRF extension.

License

Licensed under either of

at your option.

About

Tauri plugin that enables Tauri applications to call macOS native Passkey registration and login APIs, with optional support for returning the Passkey PRF extension output.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published