passport-netlify
Version:
[Passport](http://passportjs.org/) strategy for authenticating with [Netlify](https://www.netlify.com/) using the OAuth 2.0 API.
13 lines (12 loc) • 433 B
TypeScript
import OAuth2Strategy, { VerifyFunction } from 'passport-oauth2';
interface StrategyOptions {
clientID: string;
clientSecret: string;
callbackURL: string;
state?: boolean;
}
export default class Strategy extends OAuth2Strategy {
constructor(options: StrategyOptions, verify: VerifyFunction);
userProfile(accessToken: string, done: (error: Error | null, profile?: any) => void): void;
}
export {};