Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node performs a "Log Out" operation for the "Authentication" resource. It is designed to invalidate or log out a user session by using a provided refresh token. This is typically used in workflows where you need to programmatically end a user's authenticated session, such as when implementing secure logout flows or revoking access after certain actions.
Practical Example:
You might use this node at the end of an automation that handles sensitive data, ensuring that the user's session is terminated and cannot be reused.
Properties
| Name | Type | Meaning |
|---|---|---|
| Refresh Token | String | JWT access token you want to logout. This is required to perform logout. |
Output
The output structure is not explicitly defined in the provided code. However, based on standard practices for logout operations, the output will likely include a JSON object indicating the success or failure of the logout request. For example:
{
"success": true,
"message": "Logged out successfully"
}
If the node can output binary data, it would summarize the result of the logout operation, but there is no indication of binary output here.
Dependencies
- No explicit external services or API keys are mentioned in the provided code.
- The node depends on internal modules (
./actions/versionDescription,./methods,./actions/router), which handle routing and option loading. - No special n8n configurations or environment variables are specified.
Troubleshooting
Common Issues:
- Invalid or Expired Refresh Token: If the provided refresh token is invalid or expired, the logout operation may fail.
- Missing Required Property: If the "Refresh Token" property is not provided, the node will not execute successfully.
Common Error Messages:
- "Invalid refresh token" – Ensure you provide a valid, unexpired refresh token.
- "Missing required property: Refresh Token" – Make sure to fill in the required field before executing the node.
Links and References
- JWT (JSON Web Token) Introduction
- n8n Documentation: Custom Nodes
- Directus Authentication Docs (if applicable to your backend)