deleteSession method

Future<Response> deleteSession(
  1. {@required String userId,
  2. @required String sessionId}
)

Delete User Session

Delete a user sessions by its unique ID.

Implementation

Future<Response> deleteSession({@required String userId, @required String sessionId}) {
   final String path = '/users/{userId}/sessions/{sessionId}'.replaceAll(RegExp('{userId}'), userId).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);
    }