Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Authentication → Log Out

AI-generated

Overview

This node handles the 'Log Out' operation for the Authentication resource in the Directus V1 API. It allows users to log out by invalidating a provided JWT refresh token. This is useful in scenarios where a user wants to securely end their session or revoke access tokens.

Use Case Examples

  1. Logging out a user by providing their refresh token to invalidate the session.
  2. Revoking access tokens to ensure a user is logged out from all devices.

Properties

Name Meaning
Refresh Token The JWT refresh token that you want to log out and invalidate.

Output

JSON

  • success - Indicates whether the logout operation was successful.
  • message - Optional message returned from the logout operation, such as confirmation or error details.

Dependencies

  • Requires an API key credential or authentication token to access the Directus API.

Troubleshooting

  • Ensure the provided refresh token is valid and not expired, otherwise the logout operation will fail.
  • If the API returns an authentication error, verify that the API key or authentication token used is correct and has sufficient permissions.

Links

Discussion