User Registration Fails with "URL can't be used to verify registered users" Error

I’m trying to enable public user registration in Directus but getting an error when users attempt to register. The error occurs specifically with the email verification URL configuration.

{
  "errors": [{
    "message": "Invalid payload. URL \"http://localhost:4040/api/auth/verification\" can't be used to verify registered users.",
    "extensions": {
      "reason": "URL \"http://localhost:4040/api/auth/verification\" can't be used to verify registered users",
      "code": "INVALID_PAYLOAD"
    }
  }]
}
```

What I’ve Already Tried

  1. :white_check_mark: Enabled public registration in Directus settings

  2. :white_check_mark: Configured domain in verification_url environment variable

  3. :white_check_mark: Set up email configuration with Resend SMTP

  4. :white_check_mark: Followed the official documentation for user registration setup