# API signInWithBrowser

**URL:** <https://devforum.okta.com/t/api-signinwithbrowser/35229>\
**Category:** Questions\
**Created:** [April 20, 2026, 8:45am UTC](https://devforum.okta.com/t/api-signinwithbrowser/35229 "2026-04-20T08:45:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Nicolas](https://devforum.okta.com/u/Nicolas)\
**Post date:** [April 20, 2026, 8:45am UTC](https://devforum.okta.com/t/api-signinwithbrowser/35229/1 "2026-04-20T08:45:31Z")

</div>

Hello,

Is there an alternative of API "signInWithBrowser " usage to perform OKTA authentication ? The usage API signInWithBrowser doesn’t allow to disable debub webview and so not really safe.

Thanks

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [April 21, 2026, 4:29am UTC](https://devforum.okta.com/t/api-signinwithbrowser/35229/2 "2026-04-21T04:29:39Z")

</div>

Hi,

You can switch to IDX SDK for full native authentication, wherein no browser or WebView is involved.

```auto
  import { OktaAuth } from '@okta/okta-auth-js';

  const authClient = new OktaAuth({
    issuer: 'https://your-domain.okta.com/oauth2/default',
    clientId: 'YOUR_CLIENT_ID',
    redirectUri: 'YOUR_REDIRECT_URI',
  });

  const transaction = await authClient.idx.authenticate({
    username: 'user@example.com',
    password: 'password',
  });

```

More about it here - [okta-auth-js/docs/idx.md at master · okta/okta-auth-js · GitHub](https://github.com/okta/okta-auth-js/blob/master/docs/idx.md)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 21, 2026, 4:30am UTC](https://devforum.okta.com/t/api-signinwithbrowser/35229/3 "2026-05-21T04:30:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
