Excluding Modules
By default, almost all of the Devise modules are included:
You may not want all of these features enabled in your app. That's OK! You can mix and match to suit your own unique style.
The following example shows how to disable email confirmation.
Example: disable email confirmation
Just list the devise modules that you want to include before including the DeviseTokenAuth::Concerns::User
model concern.
Some features include routes that you may not want mounted to your app. The following example shows how to disable OAuth and its routes.
Example: disable OAuth authentication
First instruct the model not to include the omniauthable
module.
Now tell the route helper to skip
mounting the omniauth_callbacks
controller:
Last updated