title: Okta Auth <Security/> Component seems to have a problem with reach-router
body: <p>Here is the error that I get once I run the application.</p>
  <p>ERROR in ./node_modules/@okta/okta-react/bundles/okta-react.esm.js 284:14-27</p>
  <p>export ‘useRouteMatch’ (imported as ‘useRouteMatch’) was not found in ‘react-router-dom’ (possible exports: BrowserRouter, HashRouter, Link, MemoryRouter, NavLink, Navigate, Outlet, Route, Router, Routes, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, createRoutesFromChildren, createSearchParams, generatePath, matchPath, matchRoutes, renderMatches, resolvePath, unstable_HistoryRouter, useHref, useInRouterContext, useLinkClickHandler, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, useSearchParams)</p>
  <p>Here is what my code looks like in my Index.tsx file.</p>
  <pre><code>import React from &quot;react&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  import &quot;./index.css&quot;;
  import App from &quot;./App&quot;;
  import reportWebVitals from &quot;./reportWebVitals&quot;;
  import &quot;mdb-react-ui-kit/dist/css/mdb.min.css&quot;;
  
  import { Security } from &quot;@okta/okta-react&quot;;
  import { OktaAuth } from &quot;@okta/okta-auth-js&quot;;
  
  const config = {
    clientId: &quot;*********************&quot;,
    issuer: &quot;https://****************/oauth2/default&quot;,
    redirectUri: &quot;http://localhost:3000/login/callback&quot;,
    scopes: [&quot;openid&quot;, &quot;profile&quot;, &quot;email&quot;],
    pkce: true,
  };
  
  const oktaAuth = new OktaAuth(config);
  
  const restoreOriginalUri = () =&gt; {
    // Callback function to restore URI during login
  };
  
  ReactDOM.render(
    &lt;React.StrictMode&gt;
      &lt;Security oktaAuth={oktaAuth} restoreOriginalUri={restoreOriginalUri}&gt;
        &lt;App /&gt;
      &lt;/Security&gt;
    &lt;/React.StrictMode&gt;,
    document.getElementById(&quot;root&quot;)
  );
  
  // If you want to start measuring performance in your app, pass a function
  // to log results (for example: reportWebVitals(console.log))
  // or send to an analytics endpoint. Learn more: 
  reportWebVitals();
  </code></pre>