Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

411 B
Raw Blame
/** Recognize Google's public rejection page without retaining login query parameters. */
export function googleSignInRejected(value: string): boolean {
  try {
    const url = new URL(value);
    return url.protocol === "https:" && url.hostname === "accounts.google.com" &&
      (!url.port || url.port === "443") && /^\/(?:v\d+\/)?signin\/rejected\/?$/.test(url.pathname);
  } catch {
    return false;
  }
}