deleteSession method
Delete Account Session
Use this endpoint to log out the currently logged in user from all their account sessions across all of their different devices. When using the option id argument, only the session unique ID provider will be deleted.
Implementation
Future<req.Response> deleteSession({required String sessionId}) {
final String path = '/account/sessions/{sessionId}'
.replaceAll(RegExp('{sessionId}'), sessionId);
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.delete,
path: path, params: params, headers: headers);
}