UNPKG

easy-social-auth

Version:

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

13 lines (12 loc) 731 B
import { ITiktokConfig } from "../interfaces/config.interface"; import { SocialAuthResponse } from "../interfaces/easy-social-auth-response.interface"; import { AuthStrategy } from "./easy-social-auth.strategy"; export declare class TiktokStrategy extends AuthStrategy { private config; constructor(config: ITiktokConfig); exchangeToken(params: Record<string, string>): Promise<SocialAuthResponse<any>>; generateAuthUrl(redirectUri: string, scope?: string): string; exchangeCodeForToken(code: string, redirectUri: string): Promise<SocialAuthResponse<any>>; refreshAccessToken(refreshToken: string): Promise<SocialAuthResponse<any>>; getUserData(accessToken: string): Promise<SocialAuthResponse<any>>; }