Can anyone point out a good resource on how to implement authentication/authorization using Rails API with React?
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.
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.
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..
Please help me out.
Thank you.