Login widget without login/password. Only IDP

Hi I want to use Okta Login Widget to authorize users via Facebook only. No email/password is needed. Can’t find how to hide this fields. I use ReactJS.
Thanks in advance!

Hi @goformore,

We don’t support a config parameter in widget to hide the form fields like uname/password. However you can do the same by using afterRender method and hiding the fields.

This would look something like:

this.signIn.on(‘afterRender’, (context) => {
const element = document.querySelector(’#form1’);
element.style.visibility = “hidden”;

1 Like

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