rotateTokenCancel
abstract suspend fun rotateTokenCancel(request: ISCIMRotateTokenCancelParameters): SCIMRotateTokenCancelResponse
Cancels an in-progress SCIM bearer token rotation, keeping the existing token active. Calls the POST /sdk/v1/b2b/scim/rotate/cancel endpoint. Requires an active session.
Kotlin:
StytchB2B.scim.rotateTokenCancel(
SCIMRotateTokenCancelParameters(
connectionId = "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
)
)Content copied to clipboard
iOS:
let params = SCIMRotateTokenCancelParameters(connectionId: "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")
let response = try await StytchB2B.scim.rotateTokenCancel(params)Content copied to clipboard
React Native:
StytchB2B.scim.rotateTokenCancel({ connectionId: "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0" })Content copied to clipboard
Return
SCIMRotateTokenCancelResponse confirming the rotation was cancelled.
Parameters
request
ISCIMRotateTokenCancelParameters
connectionId— The ID of the SCIM connection whose rotation to cancel.
Throws
StytchError
if no rotation is in progress or the request fails.
if the coroutine is cancelled.