This commit is contained in:
2026-03-28 18:23:35 -05:00
parent 814ac1b808
commit 7364de2a45
3 changed files with 10 additions and 4 deletions
+2
View File
@@ -103,6 +103,7 @@ Devise.setup do |config|
# requests for sign in and sign up, you need to get a new CSRF token
# from the server. You can disable this option at your own risk.
# config.clean_up_csrf_token_on_authentication = true
config.clean_up_csrf_token_on_authentication = false
# ==> Configuration for :database_authenticatable
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
@@ -240,6 +241,7 @@ Devise.setup do |config|
#
# The "*/*" below is required to match Internet Explorer requests.
# config.navigational_formats = ['*/*', :html]
config.navigational_formats = ["*/*", :html, :turbo_stream, :json]
# The default HTTP method used to sign out a resource. Default is :delete.
config.sign_out_via = [:delete, :get]