A long-lived project that still receives updates
Add passkey support to Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 8.0.0.rc2
 Project Readme

HasSecurePasskey

HasSecurePasskey is part generator, part cinceptual compression of a passkey implementation. Implementing passkeys is more complex than regular passwords but they have the added benefit of being more secure and easier for end users to use.

Usage

If you want to use the full implementation run the bin/rails passkeys generator which sets up models, controllers, and a mailer for the whole registration and session flow.

Alternatively, you can just use the helpers provided by has_secure_passkey and the view helpers and make everything else yourself.

Installation

Add this line to your application's Gemfile:

gem "has_secure_passkey"

And then execute:

$ bundle
$ bin/rails passkeys

License

The gem is available as open source under the terms of the MIT License.