Skip to main content

laravel_passkey/
lib.rs

1//! Laravel Passkeys for Laravel Rust: passwordless authentication with WebAuthn passkeys.
2//!
3//! A community port of [Laravel Passkeys](https://github.com/laravel/passkeys-server) by Rivervo.
4//! It works with the [`@laravel/passkeys`](https://www.npmjs.com/package/@laravel/passkeys)
5//! JavaScript client unchanged. See the README for installation and usage.
6
7mod aaguids;
8pub mod actions;
9mod config;
10mod errors;
11pub mod events;
12pub mod http;
13mod middleware;
14mod passkey;
15mod passkeys;
16mod provider;
17mod user;
18mod webauthn;
19
20pub use aaguids::{Aaguids, UnsupportedTheme};
21pub use config::PasskeysConfig;
22pub use errors::{InvalidPasskey, Misconfigured};
23pub use middleware::RequirePassword;
24pub use passkey::Passkey;
25pub use passkeys::Passkeys;
26pub use provider::PasskeysServiceProvider;
27pub use user::PasskeyAuthenticatable;
28pub use webauthn::{RegistrationOptions, VerificationOptions};
29/// The WebAuthn types the actions take, such as the browser's
30/// [`PublicKeyCredential`](webauthn_rs_core::proto::PublicKeyCredential), from
31/// [`webauthn-rs-core`](https://crates.io/crates/webauthn-rs-core).
32pub use webauthn_rs_core::proto as webauthn_proto;