export const AUTHENTICATION_STARTUP_DELAY_MS = 600;

export function scheduleAuthenticationStartup(reveal, {
  setTimer = globalThis.setTimeout,
  clearTimer = globalThis.clearTimeout
} = {}) {
  const timerId = setTimer(reveal, AUTHENTICATION_STARTUP_DELAY_MS);
  return () => clearTimer(timerId);
}
