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).
Parameters
Section titled “Parameters”portalUrl
Section titled “portalUrl”string
clientId
Section titled “clientId”string
redirectUrl
Section titled “redirectUrl”string
openAuthSession?
Section titled “openAuthSession?”Returns
Section titled “Returns”Promise<void>