Skip to content
On this page

Function: signInWithOcOutcome()

TypeScript
function signInWithOcOutcome(options?: SignInWithOcOptions): Promise<OcPopupOutcome>;

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

Open the OC signin popup and resolve with how it ended (OcPopupOutcome), so a blocked window and a closed one can be told apart.

MUST be called inside a user-gesture handler (e.g. a button onClick). Browsers block window.open outside of user gestures.

ParametersLink to this section

ParameterType
optionsSignInWithOcOptions

ReturnsLink to this section

Promise<OcPopupOutcome>