node-socialite
Version:
Socialite is an OAuth2 authentication tool for Node.js
19 lines (18 loc) • 690 B
TypeScript
import { BaseProvider } from "../Core/BaseProvider";
import { User } from "../Core/User";
/**
* @see [OAuth2.0简介](https://wiki.connect.qq.com/oauth2-0%E7%AE%80%E4%BB%8B)
*/
export declare class QQ extends BaseProvider {
static NAME: string;
protected _baseUrl: string;
protected _scopes: string[];
protected _withUnionId: boolean;
protected withUnionId(): this;
getAuthUrl(): string;
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;
}