UNPKG

easy-social-auth

Version:

A flexible, standalone package for social authentication using Google, Facebook & Twitter

13 lines (12 loc) 792 B
import { ISocialUser } from '../interfaces/social-user.interface'; import { ILinkedinConfig } from '../interfaces/config.interface'; import { SocialAuthResponse } from '../interfaces/easy-social-auth-response.interface'; import { AuthStrategy } from './easy-social-auth.strategy'; export declare class LinkedinStrategy extends AuthStrategy { constructor(config: ILinkedinConfig); exchangeToken(params: Record<string, string>): Promise<SocialAuthResponse<any>>; exchangeCodeForToken(code: string, redirectUri: string): Promise<SocialAuthResponse<string>>; refreshAccessToken(refreshToken: string): Promise<SocialAuthResponse<string>>; requestAppToken(): Promise<SocialAuthResponse<string>>; getUserData(accessToken: string): Promise<SocialAuthResponse<ISocialUser>>; }