Skip to content

signInWithOAuth

signInWithOAuth(portalUrl, clientId, redirectUrl, openAuthSession?): Promise<void>

Defined in: src/auth.ts:61

Signs the user in with OAuth 2.0 and caches the resulting credential, so secured portal items (web maps / scenes from that portal) load afterwards. redirectUrl must match a redirect URI registered on your OAuth app. On iOS the SDK presents the auth browser itself; on Android you must pass openAuthSession (the module has no browser dependency — you bring your own).

string

string

string

OpenAuthSession

Promise<void>