UNPKG

@rent-the-runway/rtr-react-okta-auth

Version:

React hooks library for interacting with Okta. Lock out UI and Routes based on user authentication and the okta-user-groups the user belongs to. Can also lock out UI or Routes based on Claims.

7 lines (6 loc) 213 B
import { RouteProps } from 'react-router-dom'; export default interface IRouteWhenProps extends RouteProps { isTrue: () => boolean; unauthorizedComponent?: any; unauthenticatedComponent?: any; }