{"repo":"mikker/passwordless","free":true,"listed":false,"github":"https://github.com/mikker/passwordless","clone":"git clone https://github.com/mikker/passwordless.git","description":"🗝 Authentication for your Rails app without the icky-ness of passwords","language":"Ruby","stars":1338,"topics":["ruby","rails","passwordless","authentication","engine"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Add authentication to your Rails app without all the icky-ness of passwords. Magic link authentication, if you will. We call it passwordless . - Installation - Upgrading - Usage - Getting the current user, restricting access, the usual - Providing your own templates - Registering new users - URLs and links - Route constraints - Configuration - Delivery method - Token generation - Timeout and Expiry - Redirection after sign-in - Looking up the user - Test helpers - Security considerations - Alternatives - License Installation Add to your bundle and copy over the migrations: Upgrading See Upgrading to Passwordless 1.0 for more details. Usage Passwordless creates a single model called Passwordless::Session , so it doesn't come with its own user model. Instead, it expects you to provide one, with an email field in place. If you don't yet have a user model, check out the wiki on creating the user model. Enable Passwordless on your user model by pointing it to the email field: Then mount the engine in your routes: Getting the current user, restricting access, the usual Passwordless doesn't give you current user automatically. Here's how you could add it: Et voilà: Providing your own templates To make Passwordless look like your app, override the bundled views by adding your own. You can manually copy the specific views that you need or copy them to your application with rails generate passwordless:views . Passwordless has 2 action views and 1 mailer view: See the bundled views. Reg","default_branch":null,"files":null,"tree":[],"storefront":"/r/mikker","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mikker/passwordless/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}