Server-only — reads the non-public INSTAGRAM_CLIENT_ID. The client id still
ends up in the URL the browser follows; it is simply built here rather than
shipped in the client bundle.
Parameters
state: string
Passed back by Instagram on the callback; typically the logged-in user's access token.
redirectURI: string
Where Instagram sends the user back. Must match a URI registered with Meta verbatim.
Builds the Instagram OAuth authorization URL.
Server-only — reads the non-public
INSTAGRAM_CLIENT_ID. The client id still ends up in the URL the browser follows; it is simply built here rather than shipped in the client bundle.