Skip to content

Type Alias: OcPopupOutcome

TypeScript
type OcPopupOutcome = 
  | {
  status: "signed_in";
} & OcPopupResult
  | {
  status: "blocked";
}
  | {
  status: "closed";
}
  | {
  status: "aborted";
}
  | {
  status: "failed";
};

Defined in: popup.ts:99 (opens in a new tab)

How a sign-in popup ended:

  • signed_in · the person signed in; account and token as from signInWithOc.
  • blocked · the browser refused to open the window. Ask the person to allow pop-ups for your site, then try again from a click.
  • closed · the person closed the window without signing in.
  • aborted · your AbortSignal fired.
  • failed · not in a browser, or the popup's answer was malformed.