Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Authentication → Refresh Token

AI-generated

Overview

This node operation handles the refreshing of a JWT access token that is not expired. It is useful in scenarios where a user or system needs to obtain a new access token to maintain authenticated sessions without requiring the user to log in again. For example, it can be used in API integrations where tokens have limited lifespans and need to be refreshed programmatically.

Use Case Examples

  1. Refreshing a JWT access token before it expires to maintain continuous API access.
  2. Automating token refresh in a workflow that interacts with a service requiring JWT authentication.

Properties

Name Meaning
Refresh Token The JWT access token you want to refresh. This token must not be expired.

Output

JSON

  • refreshedToken - The new JWT access token obtained after refreshing the original token.

Dependencies

  • Requires an API authentication token or credentials to authorize the refresh request.

Troubleshooting

  • Ensure the provided JWT access token is not expired; otherwise, the refresh operation will fail.
  • Verify that the token format is correct and matches the expected JWT structure.
  • Check that the API credentials or authentication method used to authorize the refresh request are valid and have the necessary permissions.

Discussion