nejdetkadir / devise-api

The devise-api gem is a convenient way to add authentication to your Ruby on Rails application using the devise gem. It provides support for access tokens and refresh tokens, which allow you to authenticate API requests and keep the user's session active for a longer period of time on the client side
MIT License
152 stars 22 forks source link

AbstractController::ActionNotFound: The action 'sign_in' could not be found #19

Open vergil-zhao opened 1 year ago

vergil-zhao commented 1 year ago

After defining a customized controller for TokensController like the below:

And setting the route to the new controller:

Then it cannot find the sign_in method:

But other routes work fine (users/tokens/info, users/tokens/revoke, etc.).

Could you help with that?

borisMD24 commented 9 months ago

well, your token controller extends Devise::Api::TokensController

i did it that way : def sign_in super() end