terminateSession

suspend fun terminateSession()

Terminates the current presentation session.

Do not call this method if the user declines to present credentials. Instead, return a response containing an empty array to indicate that no credentials were presented.

Calling this method will trigger the callback provided by onSessionTerminated.

Throws

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

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