Api_dev_key to represent users

In the course “Grokking the System Design Interview”, “api_dev_key” is used in many chapters to represent users calling the service. Can a JWT token like the OIDC access token be used for the same purpose? If so, which is better?


I think the JWT token would also work.