naystack - v1.9.9
    Preparing search index...

    Function getLongLivedInstagramToken

    • Exchanges an OAuth code for a long-lived Instagram access token.

      Parameters

      • code: string

        Authorization code from the callback.

      • redirectURI: string

        The same URI used to obtain the code.

      Returns Promise<
          | {
              accessToken: string;
              expiresIn: number;
              permissions: string[]
              | undefined;
              userId: string | undefined;
          }
          | undefined,
      >

      { accessToken, userId, expiresIn, permissions }, or undefined if either exchange failed.