The Delete SSO Connection method wraps the Delete SSO Connection API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to delete SSO connections in other Organizations.
Delete SSO Connection
Method parameters
connection_id* string
Response fields
request_id string
status_code int
connection_id string
import { Text, TouchableOpacity, View } from 'react-native';
import { useStytchB2BClient } from '@stytch/react-native/b2b';
export const DeleteSSOConnection = () => {
const stytch = useStytchB2BClient();
const deleteSSOConnection = () => {
stytch.sso.deleteConnection('saml-connection-test-51861cbc-d3b9-428b-9761-227f5fb12be9');
};
return (
<View>
<TouchableOpacity onPress={deleteSSOConnection}>
<Text>Delete SSO Connection</Text>
</TouchableOpacity>
</View>
);
};
RESPONSE
200
{
"connection_id": "saml-connection-test-51861cbc-d3b9-428b-9761-227f5fb12be9",
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"status_code": 200
}