Skip to content

Issue with incorrect verification endpoint and verification logic for BrandFetch #3469

Closed
@sahil9001

Description

Please review the Community Note before submitting

TruffleHog Version

Trace Output

Expected Behavior

The API endpoint should point to v2 API with correct validation logic for token.

Reference : https://docs.brandfetch.com/reference/brand-api

Actual Behavior

Issue 1: Incorrect verification endpoint

Currently the API endpoint for verification points to https://api.brandfetch.io/v1/color which is nowhere to be found on the brandfetch.io documentation. They have upgraded to v2 apis.

Issue 2: Incorrect validation logic

Currently the verification logic for the token is incorrect, which is according to the v1 APIs which doesn't work anymore.

Steps to Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Environment

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional Context

References

  • #0000

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions