import redirectToLogin from '@iqmetrix/redirect-to-login';
await redirectToLogin().catch(console.error);
Because this function navigates the browser away from the current page, we don't recommend adding a resolved handler as it isn't guaranteed to be executed.