Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Overview

This node handles authentication-related operations for a service, specifically focusing on logging out users by invalidating their refresh tokens. The "Log Out" operation allows users to securely terminate their session by providing the refresh token they want to invalidate. This is useful in scenarios where you want to ensure that a user's session is properly closed, such as when implementing logout functionality in an application or revoking access tokens after suspicious activity.

Properties

Name Meaning
Refresh Token JWT refresh token you want to log out (invalidate). Required for the logout operation.

Output

The node outputs JSON data indicating the result of the logout operation. Typically, this would include confirmation that the refresh token was successfully invalidated or an error message if the operation failed. There is no indication of binary data output.

Dependencies

  • Requires an API key or authentication token to interact with the external service's authentication endpoints.
  • The node depends on internal methods and routing logic bundled within the node's codebase to perform the logout operation.
  • Proper configuration of credentials and permissions is necessary to allow token invalidation.

Troubleshooting

  • Invalid or expired refresh token: If the provided refresh token is invalid or already expired, the logout operation may fail. Ensure the token is current and correctly copied.
  • Missing required property: The "Refresh Token" field is mandatory. Omitting it will cause errors.
  • Authentication failure: If the node lacks proper API credentials or permissions, the logout request will be rejected.
  • Network issues: Connectivity problems can prevent successful communication with the authentication service.

To resolve these issues:

  • Verify the refresh token value.
  • Confirm that all required properties are set.
  • Check API credentials and permissions.
  • Ensure network connectivity to the service endpoint.

Links and References

Discussion