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
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
Hi,
You can switch to IDX SDK for full native authentication, wherein no browser or WebView is involved.
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