import React, { FC, MouseEventHandler } from 'react'; import withCustomRouter, { ReactOidcHistory } from '../routes/withRouter'; import { getUserManager, authenticateUser } from '../services'; type SessionLostProps = { onAuthenticate?: MouseEventHandler; }; export const SessionLost: FC = ({ onAuthenticate }) => (

Session expirée

Votre session est expirée. Veuillez vous ré-authentifier.

); type SessionLostContainerProps = { location: Location; history?: ReactOidcHistory; }; export const SessionLostContainer: FC = ({ location, history }) => { const callbackPath = location.search.replace('?path=', ''); const onAuthenticate = () => { authenticateUser(getUserManager(), location, history)(true, callbackPath); }; return ; }; export default withCustomRouter(SessionLostContainer);