revokeSessionWithHttpInfo method
Revoke a session
Sets the status of a session as "revoked", which is an unauthenticated state. In multi-session mode, a revoked session will still be returned along with its client object, however the user will need to sign in again.
Note: This method returns the HTTP Response
.
Parameters:
- String sessionId (required): The ID of the session
Implementation
Future<http.Response> revokeSessionWithHttpInfo(
String sessionId,
) async {
// ignore: prefer_const_declarations
final path =
r'/sessions/{session_id}/revoke'.replaceAll('{session_id}', sessionId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}