Stephen Gold

Joined

4,840 Experience
41 Lessons Completed
1 Question Solved

Activity

Posted in JWT with Devise (App and API)

Hi,

I'm looking to extend my Rails 5.2 application that uses Devise for authentication so I can support API requests via JSON. I have looked at Chris' videos and did some searching around -- most tutorials I have found only make use of using an "API Only" mode. I would like to make use off of the existing code I have (e.g. use respond_to in the controller, instead of making separate API::Controllers for the exact same code).

Is this possible to do? If so please point me in the right direction. Thank you!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.