B2B Saas Authentication

/

Mobile SDKs

/

React Native SDK reference

/

SCIM

/

Rotate SCIM Token Cancel

SCIM Rotate Token Cancel

The SCIM Rotate Token Cancel method wraps the SCIM Rotate Token Cancel API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to cancel token rotations for SCIM connections in other Organizations.


Method parameters


connection_id*string

Response fields


request_idstring

status_codeint

connectionobject
import { Text, TouchableOpacity, View } from 'react-native';
import { useStytchB2BClient } from '@stytch/react-native/b2b';

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

  const rotateSCIMTokenCancel = () => {
    stytch.scim.rotateCancel('scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc');
  };

  return (
    <View>
      <TouchableOpacity onPress={rotateSCIMTokenCancel}>
        <Text>Cancel SCIM Token Rotation</Text>
      </TouchableOpacity>
    </View>
  );
};

RESPONSE

200
{
  "connection": {
      "organization_id": "organization-test-07971b06-ac8b-4cdb-9c15-63b17e653931"
      "connection_id": "scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc"
      "status": "active",
      "display_name": "My SCIM Connection"
      "identity_provider": "okta"
      "base_url": "https://test.stytch.com/v1/b2b/scim/scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc"
      "bearer_token_expires_at": "2029-03-20T21:28:28Z"
      "bearer_token_last_four": "sdko"
  },
}