()
| 4 | import { useEffect } from 'react'; |
| 5 | |
| 6 | function ErrorPage(): ReactElement | null { |
| 7 | useEffect(() => { |
| 8 | const urlSearchParams = new URLSearchParams(window.location.search); |
| 9 | const params = Object.fromEntries(urlSearchParams.entries()); |
| 10 | postWindowMessage(AuthEvent.Error, params); |
| 11 | if (!isPWA()) { |
| 12 | window.close(); |
| 13 | } |
| 14 | }, []); |
| 15 | |
| 16 | return null; |
| 17 | } |
| 18 | |
| 19 | export default ErrorPage; |
nothing calls this directly
no test coverage detected