B2B Saas Authentication

/

Mobile SDKs

/

React Native SDK reference

/

SSO

/

Get SSO Connections

Get SSO Connections

The Get SSO Connections method wraps the Get SSO Connections API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to get SSO connections from other Organizations.


Response fields


request_idstring

status_codeint

saml_connectionsarray[Object]

oidc_connectionsarray[Object]

external_connectionsarray[Object]
import { Text, TouchableOpacity, View } from 'react-native';
import { useStytchB2BClient } from '@stytch/react-native/b2b';

export const GetSSOConnections = () => {
  const stytch = useStytchB2BClient();

  const getSSOConnections = () => {
    stytch.sso.getConnections();
  };

  return (
    <View>
      <TouchableOpacity onPress={getSSOConnections}>
        <Text>Get SSO Connections</Text>
      </TouchableOpacity>
    </View>
  );
};

RESPONSE

200
{
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "status_code": 200,
    "saml_connections": [{...}, {...}],
    "oidc_connections": [{...}, {...}],
    "external_connections": [{...}, {...}]
}