deleteSession static method

Future<Map<String, dynamic>> deleteSession()

Implementation

static Future<Map<String, dynamic>> deleteSession() async {
  Account account = Account(_client);
  try {
    await account.deleteSession(sessionId: "current");
    return {"error": false};
  } on AppwriteException catch (error) {
    return {
      'error': true,
      'type': error.type,
      'message': error.message,
      'code': error.code,
    };
  }
}