Home > Blockchain >  Can I use devise for authentication when I wanted to use Rails as a api only and React as a front en
Can I use devise for authentication when I wanted to use Rails as a api only and React as a front en

Time:11-23

I have a research task to do. I want to use Ruby on Rails as a api only application and React.Js as a front end framework. I have just started researching about it but I cant find any video/article that is using react-rails combo and devise as authentication. Is it possible to use devise for this combo or I have to do authentication all manual way using sessions and sending authorization token with every request from react.

CodePudding user response:

No, you cannot use Devise with a React frontend. Devise is a Ruby gem, and is meant to be used with a Ruby on Rails backend.You will have to do authentication all manual way using sessions and sending an authorization token with every request from React.

  • Related