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) 218 B
import { RouteProps } from 'react-router-dom'; export default interface IRouteWhenMemberOfGroupProps extends RouteProps { group: string; unauthenticatedComponent?: any; unauthorizedComponent?: any; }