David Cournapeau
David Cournapeau

Reputation: 80770

What are the rationales for token in js-based APIs

A lot of "javascript API" such as the ones available from google for tracking, etc... provide you with a token to initialize the API. What are the rationales for such a design ? Is it to simplify tracking on the backend side for the service which provides such APIs ? The idea "sounds" natural to me, but being relatively new to web development, I don't think I really understand the implication.

Upvotes: 0

Views: 72

Answers (1)

abraham
abraham

Reputation: 47893

Tracking and control. They can make sure you are only using it on registered domains and if usage stops conforming to their constraints they know who to contact and/or shutdown.

Upvotes: 1

Related Questions