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 provides an "Authentication" resource with a "Refresh Token" operation. It is designed to refresh a JWT access token that has not yet expired, returning a new valid token. This is useful in scenarios where you need to maintain a user's authenticated session without requiring them to log in again. For example, it can be used in automated workflows that interact with APIs requiring continuous authentication.
Properties
| Name | Type | Meaning |
|---|---|---|
| Refresh Token | String | The JWT access token you want to refresh. This token must not be expired. Required input. |
Output
The output will contain the refreshed JWT token and possibly additional authentication-related information in the json field. The exact structure depends on the API response but typically includes the new token and its metadata.
Dependencies
- Requires access to the Directus API or service for token refreshing.
- No explicit mention of API keys or environment variables in the provided code, but authentication endpoints usually require proper configuration.
Troubleshooting
- Invalid or Expired Token: If the provided refresh token is expired or invalid, the node may throw an error indicating authentication failure. Ensure the token is valid and not expired.
- Missing Token: If the "Refresh Token" property is left empty, the node will likely fail due to missing required input.
- API Connectivity Issues: Network or configuration issues may result in connection errors. Verify endpoint URLs and network access.