UNPKG

node-socialite

Version:

Socialite is an OAuth2 authentication tool for Node.js

20 lines (19 loc) 757 B
import { BaseProvider } from "../Core/BaseProvider"; import { User } from "../Core/User"; /** * @see [WEB 授权说明](https://open.douyin.com/platform/doc/6852243568711583752) */ export declare class DouYin extends BaseProvider { static NAME: string; protected _baseUrl: string; protected _scopes: string[]; protected _openId: string; protected withOpenId(openId: string): this; getAuthUrl(): string; protected getCodeFields(): Record<string, any>; getTokenUrl(): string; protected getTokenFields(code: string): Record<string, any>; tokenFromCode(code: string): Promise<Record<string, any>>; getUserByToken(token: string): Promise<Record<string, any>>; mapUserToObject(user: Record<string, any>): User; }