I have been using token_authenticatable before to secure my API, however, I have found that it was deprecated? What should I use instead and why did they deprec
I have answered this question previously and provided an alternative with example code covering how to do OAuth 2.0 API/Token authentication with Rails and Warden.
Devise is pretty much irrelevant for API's and I always felt uncomfortable trying to wrestle with Devise to make it work the way I needed so I ditched it, but the Warden middleware on which Devise is based is still useful for supporting multiple authentication strategies and is what my example uses.