mikker / passwordless

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

Add Passwordless.config and Passwordless.configure { |config| ... } #155

Closed mikker closed 1 year ago

mikker commented 1 year ago

Saving the config options directly on the module is messy. This moves all the options to a separate config object.

Another BREAKING CHANGE.

Instead, Passwordless is now configured like this:

Passwordless.configure do |config|
  config.default_from_address = "hi@..."
end