Skip to content

Commit

Permalink
docs: add url to code example
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Feb 22, 2023
1 parent 8eb642f commit e91a298
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/authentication/ClientSideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { PublicClientApplication } from "@azure/msal-browser";
import { useHistory } from "react-router-dom";
import { CustomNavigationClient } from "./NavigationClient";

// This component is needed to take advantage of the router's navigate functions when MSAL redirects between pages in your app
/**
* This component is optional. This is how you configure MSAL to take advantage of the router's navigate functions when MSAL redirects between pages in your app
* @see: https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/09f65ee73fa849e71e3a73b857f562fab9d47263/samples/msal-react-samples/react-18-sample/src/App.js#L38-L54
*/
export const ClientSideNavigation = ({ children, instance }: TProps) => {
const navigate = useHistory();
const navigationClient = new CustomNavigationClient(navigate);
Expand Down

0 comments on commit e91a298

Please sign in to comment.