heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.89k stars 5.54k forks source link

keep getting a 401 on overriden create devise #5594

Closed jay754 closed 1 year ago

jay754 commented 1 year ago

Current behavior

I keep getting a 401 on the create action. I have tried to change the file along with the routes.

here is my routes file.

mount_devise_token_auth_for "User", at: "auth", controllers: { passwords: "passwords", sessions: "custom_sessions" }

class CustomSessionsController < Devise::SessionsController

  def create
    super
  end

  def destroy
  end

end