import { useEffect } from 'react' ; import { getUserManager } from '../userManager' ; export const OidcSilentSignIn = ( ) : null => { useEffect ( ( ) => { const userManager = getUserManager ( ) ; userManager . signinSilentCallback ( ) . catch ( function ( error ) { console . log ( error ) ; } ) ; } , [ ] ) ; return null ; } ; export default OidcSilentSignIn ;