UNPKG

@goiam/react

Version:

React SDK for Go-IAM - A lightweight Identity and Access Management server

11 lines 469 B
import React from 'react'; import { AuthGuardProps } from './types'; /** * AuthGuard component that protects routes based on authentication and roles */ export declare const AuthGuard: React.FC<AuthGuardProps>; /** * Higher-order component version of AuthGuard */ export declare const withAuthGuard: <P extends object>(WrappedComponent: React.ComponentType<P>, guardOptions?: Omit<AuthGuardProps, "children">) => React.FC<P>; //# sourceMappingURL=AuthGuard.d.ts.map