Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Overview

The node provides an operation to reset a user's password using a one-time JWT token for verification. This is typically used in scenarios where a user has forgotten their password and needs to securely set a new one. The node verifies the token's validity and updates the user's password accordingly.

Practical examples include:

  • Implementing a "Forgot Password" feature in an application.
  • Allowing users to reset their passwords via emailed secure tokens.
  • Enforcing password changes after account recovery or security incidents.

Properties

Name Meaning
Token One-time use JWT token that verifies the user's identity for password reset.
Password The new password to be set for the user.
JSON/RAW Parameters Whether to input parameters as individual fields or as raw JSON data.

Output

The node outputs a JSON object indicating the result of the password reset operation. Typically, this includes confirmation of success or details about any errors encountered during the process.

No binary data output is involved.

Dependencies

  • Requires a valid one-time JWT token to authenticate the password reset request.
  • Depends on an external authentication service or API endpoint that validates the token and updates the password.
  • Requires proper configuration of API credentials or authentication tokens within n8n to access the external service.

Troubleshooting

  • Invalid or expired token error: Occurs if the provided JWT token is no longer valid or has already been used. Solution: Request a new password reset token.
  • Password policy violations: If the new password does not meet required complexity rules, the operation may fail. Solution: Ensure the new password complies with the service's password requirements.
  • Missing required parameters: Both token and password must be provided; otherwise, the node will throw an error. Solution: Verify all required inputs are correctly set.
  • API connectivity issues: Network or authentication failures can prevent the reset. Solution: Check API credentials and network connectivity.

Links and References

Discussion