How to Implement Authorization in React JS