terminateSession

suspend fun terminateSession(sessionStatus: SessionStatus = SessionStatus.SessionTermination)

Terminate the session explicitly, send a status code to the holder, and close data transport.

Parameters

sessionStatus

the status code sent to the verifier

Throws

If the SDK API is called before the SDK is initialised.

If the session is in an idle state and is terminated with the provided status code.