easy-social-auth
Version:
A flexible, standalone package for social authentication using Google, Facebook & Twitter
12 lines (11 loc) • 731 B
TypeScript
import { IInstagramConfig } from "../interfaces/config.interface";
import { SocialAuthResponse } from "../interfaces/easy-social-auth-response.interface";
import { AuthStrategy } from "./easy-social-auth.strategy";
export declare class InstagramStrategy extends AuthStrategy {
private config;
constructor(config: IInstagramConfig);
exchangeCodeForToken(code: string, redirectUri: string, additionalParams?: Record<string, string>): Promise<SocialAuthResponse<string>>;
exchangeTokenForLongLivedToken(accessToken: string): Promise<SocialAuthResponse<string>>;
refreshAccessToken(accessToken: string): Promise<SocialAuthResponse<string>>;
getUserData(accessToken: string): Promise<SocialAuthResponse<any>>;
}