mikker / passwordless

🗝 Authentication for your Rails app without the icky-ness of passwords
MIT License
1.26k stars 85 forks source link

Sidekiq integration #130

Closed Tioneb12 closed 11 months ago

Tioneb12 commented 1 year ago

Hi,

I get an error routind with sidekiq intégration :

require 'sidekiq/web'
require 'admin_constraint'

Rails.application.routes.draw do
  passwordless_for :users, at: '/', as: :auth

    scope 'admin', module: 'admin', as: 'admin' do
      mount Sidekiq::Web => '/sidekiq', constraints: AdminConstraint.new
    end
end

All my emails form my webapp get an errro :

NoMethodError: undefined method `passwordless_with' for #

How can I fix it ?

mzrnsh commented 1 year ago

Don't know if this helps but I posted how I made Sidekiq and Passwordless play along right here: https://github.com/mikker/passwordless/issues/125