Change8

Migrating to Devise v5.0.0.rc

Version v5.0.0.rc introduces 1 breaking change. This guide details how to update your code.

Released: 12/31/2025

1
Breaking Changes
2
Migration Steps
4
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

Devise::SessionsController#createDevise.sign_out_all_users!Warden::Proxy#logoutDevise::Mailer.reset_password_instructions

Breaking Changes

Issue #1

The `Devise::SessionsController#create` action no longer accepts `params[:session]` for sign-in. You must now use `params[:user]` or `params[:admin]` depending on the scope being used for sign-in.

Migration Steps

  1. 1
    Review all usages of `params[:session]` in custom controllers and update them to use the appropriate scope parameter (e.g., `params[:user]`).
  2. 2
    If using `Devise.sign_out_all_users!`, replace it with `warden.logout` for the specific scope or use `Warden::Proxy#logout` if global sign-out is required.

Release Summary

Devise v5.0.0.rc introduces MFA support and updates session controller parameter handling, necessitating migration steps for sign-in logic.

Need More Details?

View the full release notes and all changes for Devise v5.0.0.rc.

View Full Changelog