UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines 557 B
import { PropsWithChildren } from 'react'; /** * AuthenticationGuard redirects unauthenticated users to OneSage login * after session initialization is complete. This component displays a loading * screen while checking authentication status and handles the redirect flow. * * @example * ```tsx * <AuthenticationGuard> * <ProtectedContent /> * </AuthenticationGuard> * ``` */ export declare function AuthenticationGuard({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=AuthenticationGuard.d.ts.map