Hello! I’m trying to add a facebook social media login to my react app. I followed these two tutorials:
- https://developer.okta.com/blog/2018/07/10/build-a-basic-crud-app-with-node-and-react
- https://developer.okta.com/docs/guides/add-an-external-idp/facebook/use-idp-to-sign-in
Seems like I should just be able to set the idps
& idpDisplay
params in the okta config passed to the Security
component but looking through the docs that doesn’t seem supported.
const oktaConfig = {
issuer: `${process.env.REACT_APP_OKTA_ORG_URL}/oauth2/default`,
redirect_uri: `${window.location.origin}/implicit/callback`,
client_id: process.env.REACT_APP_OKTA_CLIENT_ID,
idps: [
{
type: "FACEBOOK",
id: "<my_id>",
},
],
idpDisplay: "PRIMARY",
};
ReactDOM.render(
<BrowserRouter>
<Security {...oktaConfig}>
<App />
</Security>
</BrowserRouter>,
document.getElementById('root')
);
Is there a way to add social media IDPS with okta-react?