rotateTokenStart
abstract suspend fun rotateTokenStart(request: ISCIMRotateTokenStartParameters): SCIMRotateTokenStartResponse
Initiates a SCIM bearer token rotation for the specified connection. The new token is generated in a pending state; call rotateTokenComplete to activate it. Calls the POST /sdk/v1/b2b/scim/rotate/start endpoint. Requires an active session.
Kotlin:
StytchB2B.scim.rotateTokenStart(
SCIMRotateTokenStartParameters(
connectionId = "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
)
)Content copied to clipboard
iOS:
let params = SCIMRotateTokenStartParameters(connectionId: "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")
let response = try await StytchB2B.scim.rotateTokenStart(params)Content copied to clipboard
React Native:
StytchB2B.scim.rotateTokenStart({ connectionId: "scim-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0" })Content copied to clipboard
Return
SCIMRotateTokenStartResponse containing the pending new token.
Parameters
request
ISCIMRotateTokenStartParameters
connectionId— The ID of the SCIM connection whose token to rotate.
Throws
StytchError
if the connection is not found or the request fails.
if the coroutine is cancelled.