Appwrite icon

Appwrite

A comprehensive node for the Appwrite API

Overview

This node integrates with the Appwrite API to manage user sessions, specifically allowing deletion of a particular session for a given user. It is useful in scenarios where you want to programmatically revoke or terminate a user's active session, such as logging out a user from a specific device or invalidating a compromised session.

For example, if an administrator wants to force logout a user from one device without affecting other sessions, this node can delete that specific session by its ID.

Properties

Name Meaning
User ID The unique identifier of the user whose session you want to delete.
Session ID The unique identifier of the session to be deleted for the specified user.

Output

The output JSON contains a single object indicating success:

{
  "success": true
}

This confirms that the specified user session was successfully deleted.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Appwrite API.
  • The node depends on the Appwrite client library internally to perform API calls.
  • Proper configuration of the API authentication credentials within n8n is necessary.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent User ID or Session ID will likely result in an error from the Appwrite API.
    • Missing or incorrect API credentials will cause authentication failures.
    • Network connectivity issues may prevent successful API communication.
  • Error messages and resolutions:

    • "User not found" or "Session not found": Verify that the User ID and Session ID are correct and exist in your Appwrite project.
    • Authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions.
    • Network errors: Check your internet connection and firewall settings.

Links and References

Discussion