UNPKG

easy-social-auth

Version:

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

11 lines (10 loc) 648 B
import { ISpotifyConfig } from '../interfaces/config.interface'; import { SocialAuthResponse } from '../interfaces/easy-social-auth-response.interface'; import { AuthStrategy } from './easy-social-auth.strategy'; export declare class SpotifyStrategy extends AuthStrategy { constructor(config: ISpotifyConfig); exchangeToken(params: Record<string, string>): Promise<SocialAuthResponse<any>>; exchangeCodeForToken(code: string, redirectUri: string): Promise<SocialAuthResponse<any>>; refreshAccessToken(refreshToken: string): Promise<SocialAuthResponse<any>>; getUserData(accessToken: string): Promise<SocialAuthResponse<any>>; }