Skip to content

Commit 1b4c263

Browse files
committed
Revert accidental auto-formatting changes
1 parent 3fe465a commit 1b4c263

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EXAMPLES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,18 @@ In order to protect a route with a claims check alongside an authentication requ
326326
327327
```jsx
328328
const withClaimCheck = (Component, myClaimCheckFunction, returnTo) => {
329-
const { user } = useAuth0();
329+
const { user } = useAuth0();
330330
if (myClaimCheckFunction(user)) {
331-
return <Component />;
331+
return <Component />
332332
}
333333
Router.push(returnTo);
334-
};
334+
}
335335

336336
const checkClaims = (claim?: User) => claim?.['https://my.app.io/jwt/claims']?.ROLE?.includes('ADMIN');
337337

338338
// Usage
339339
const Page = withAuthenticationRequired(
340-
withClaimCheck(Component, checkClaims, '/missing-roles')
340+
withClaimCheck(Component, checkClaims, '/missing-roles' )
341341
);
342342
```
343343

0 commit comments

Comments
 (0)