A ready-made singleton — import and call it, there is nothing to construct.
Credentials are read from the environment inside the auth methods, so
fetchProfile and fetchMedia need only a token and work in a process that
has no Instagram OAuth configuration at all.
Wraps the platform-specific helpers rather than replacing them:
getInstagramUser and getInstagramMedia remain the way to reach
fields this normalization drops.
Requires env vars for auth only: INSTAGRAM_CLIENT_ID, INSTAGRAM_CLIENT_SECRET.
Instagram as a normalized SocialProvider.
A ready-made singleton — import and call it, there is nothing to construct. Credentials are read from the environment inside the
authmethods, sofetchProfileandfetchMedianeed only a token and work in a process that has no Instagram OAuth configuration at all.Wraps the platform-specific helpers rather than replacing them: getInstagramUser and getInstagramMedia remain the way to reach fields this normalization drops.
Requires env vars for
authonly:INSTAGRAM_CLIENT_ID,INSTAGRAM_CLIENT_SECRET.