My User class is :token_authenticatable. I want to override the function Devise::Strategies::TokenAuthenticatable.authenticate! function with my own function. What is the best way to do that?
Other question is, if I want to override the TokenAuthenticatable class with MyTokenAuthenticatable class to override a couple of functions, what is the best way to do the same?
You should create a new Strategy i.e.
It can be a copy of
that has your necessary changes