Skip to content

Commit

Permalink
Fix react-router example
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 29, 2025
1 parent 3e1e2f6 commit b2d08fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react-router/src/pages/ProtectedPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useOidc } from "oidc";

export function ProtectedPage() {
// Here we can safely assume that the user is logged in.
const { oidcTokens, goToAuthServer, backFromAuthServer } = useOidc({ assertUserLoggedIn: true });
const { oidcTokens, goToAuthServer, backFromAuthServer } = useOidc({ assert: "user logged in" });

return (
<h4>
Expand Down

0 comments on commit b2d08fc

Please sign in to comment.