deleteToken method
Deletes the challenge token based on the given appId and sessionId.
May throw BadRequestException.
May throw GatewayTimeoutException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter appId :
The app ID.
Parameter sessionId :
The session ID.
Implementation
Future<DeleteTokenResponse> deleteToken({
required String appId,
required String sessionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/backend/${Uri.encodeComponent(appId)}/challenge/${Uri.encodeComponent(sessionId)}/remove',
exceptionFnMap: _exceptionFns,
);
return DeleteTokenResponse.fromJson(response);
}