deleteSession method
Delete 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 Session ID argument, only the unique session ID provided is deleted.
Implementation
Future deleteSession({required String sessionId}) async {
final String path =
'/account/sessions/{sessionId}'.replaceAll('{sessionId}', sessionId);
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.delete,
path: path, params: params, headers: headers);
return res.data;
}