我正在使用包对web应用程序中的用户进行身份验证。我已将react-router-dom路由设置为要求身份验证:import { Route, BrowserRouter as Router, SwitchAzure AD B2C登录页面,在登录时推送回应用程序,然后重定向到/products。但在匿名浏览器中,当用户在登录
我正在使用react-router-2.我希望在成功登录或执行某些操作后以编程方式重定向到页面。我的路由文件就像this(routes.js) <IndexRoute component={Home}/>Perform some check if already authenticated
if (loggedI