naystack - v1.5.10
    Preparing search index...

    Interface InitInstagramAuthOptions

    Options for initializing Instagram OAuth via initInstagramAuth.

    interface InitInstagramAuthOptions {
        errorRedirectURL: string;
        onUser: (
            data: InstagramUser,
            id: number | null,
            accessToken: string,
        ) => Promise<string | void>;
        refreshKey: string;
        successRedirectURL: string;
    }
    Index

    Properties

    errorRedirectURL: string

    Where to redirect on error (with ?error= query param).

    onUser: (
        data: InstagramUser,
        id: number | null,
        accessToken: string,
    ) => Promise<string | void>

    Called with (instagramUser, appUserId, accessToken) after successful OAuth. Return a string to show as error (redirects to errorRedirectURL); return void on success.

    refreshKey: string

    Your app secret (e.g. REFRESH_KEY env var) used in the flow.

    successRedirectURL: string

    Where to redirect after successful Instagram auth.