-
Redirecting user back to protected page after signing (React/Redux)
In developing web applications it’s a common practice to redirect user to login page if he tries to visit protected route. It’s also cool to redirect user back to protected route after he has successfully authenticated. My approach in React/Redux is to (1) store a route endpoint in Redux state when unauthorized user attempts to…