@koex/passport-github-config
Version:
koex passport-github
23 lines (22 loc) • 621 B
TypeScript
import { Strategy, IVerify, Config } from '@koex/passport-oauth2-config';
export interface GithubStrategyOptions {
client_id: string;
client_secret: string;
redirect_uri: string;
}
export interface Token {
access_token: string;
}
export interface Profile {
id: string;
login: string;
avatar_url: string;
url: string;
node_id: string;
}
export declare class GithubStrategy extends Strategy<Token, Profile> {
private readonly _options;
readonly verify: IVerify<Profile>;
constructor(_options: GithubStrategyOptions, verify: IVerify<Profile>);
protected config: Config;
}