Skip to content
On this page

Function: signInWithOc()

TypeScript
function signInWithOc(options?: SignInWithOcOptions): Promise<OcPopupResult | null>;

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

Open the OC signin popup and resolve with the session result. Returns null if the user closed the popup without completing signin, if the browser blocked it, or if the AbortSignal fired. To tell those apart, use signInWithOcOutcome.

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<OcPopupResult | null>