Laravel Passkeys Rust
Passkey login for Laravel for Rust, without a password or a username.
cargo add laravel-passkeys-rust
Try it
The demo makes you an anonymous guest. Add a passkey named Demo, log out and log back in with it, then delete it again. Guests and their passkeys are gone within the hour.
Open the passkeys demoThe demo runs on demo.sigtermans.me, so its passkeys belong to that domain and stay out of your way everywhere else.
What it does
-
No password, no username
The passkey says who the user is. Log in with a button, or from the email field autofill.
-
Routes and a script
The service provider adds the routes and serves /passkeys/passkeys.js, so a page needs one button and one script tag.
-
A guard where you want it
Put a password confirmation of your own in front of adding and removing passkeys with middleware().
-
Events
PasskeyRegistered and PasskeyUsed are dispatched when a passkey is added or used.
Hi, I'm Mischa. I've been shipping products and building ventures for over a decade. First exit at 25, second at 30. Now Partner & CPO at Ryde Ventures, an AI venture studio in Amsterdam. Currently shipping Stagent, TAP and Steddle. I write about what I learn along the way. More about me.
You might also enjoy: Main is the agents' branch. Production is mine..