lynndylanhurley / devise_token_auth

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Do What The F*ck You Want To Public License
3.52k stars 1.14k forks source link

keep getting a 401 on overriden create devise #1598

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
jay754 commented 1 year ago

super is called and rather then creating a new user or sessions, it gives me a 401