title: How to Integrate Rails User Authentication and Authorization with a Front End App?
body: <p>Can anyone point out a good resource on how to implement authentication/authorization using Rails API with React?</p>
  
  <p>I've been spending a week or two trying to figure out how to combine the two and I haven't been able to, it's driving me insane.</p>
  
  <p>There are people who says HTTP cookie only authentication is better whereas some people say token authentications are better. Then comes authorization. Then connecting. There's so much going on at once I can't decipher what method is the best practice. </p>
  
  <p>Right now I am trying to use devise and pundit for authenticating and authorizing users, but then there are gems like simple-token-authentication, Knock, etc.. </p>
  
  <p>Please help me out.</p>
  
  <p>Thank you.</p>