Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Authentication → Log Out
AI-generatedOverview
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
- Logging out a user by providing their refresh token to invalidate the session.
- 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
- Directus Authentication API Documentation - Official documentation for Directus authentication endpoints including logout.