IGBD only access with token

DO NOT DO THIS

A token that can call IGDB’s API doesn’t belong to the user, and shouldn’t be visible to users.

When an app access token expires, just make a new one

Not for IGDB no, IGDB only supports App Access Tokens.

So all requests for IGDB should work as follows:

  • users visits your website and is logged out of Twitch to your site
  • user makes a request for a game
  • your website calls your backend
  • the backend makes a call to IGDB keeping the Token hidden form the user.

IGDB doesn’t work with users tokens so getting a user token does not help you access IGDB data.

IE: the front end doesn’t directly call IGDB.
Your front end calls your backend and the backend proxies the request to IGDB