UNPKG

@pubby/sdk

Version:
19 lines (18 loc) 598 B
import { User } from "../../models/user"; import { AuthStrategy } from "./strategy"; import { OAuthClient } from "./oauth"; import { Pubby } from "../../client"; export interface BotCredentialsOptions { clientId: string; secret: string; } export declare class BotStrategy implements AuthStrategy { options: BotCredentialsOptions; oauth: OAuthClient; user: User; constructor(options: BotCredentialsOptions); init(pubby: Pubby): Promise<void>; getToken(): Promise<string>; getTicket(): Promise<string>; isAuthenticated(): Promise<boolean>; }