UNPKG

passport-annict

Version:

Passport strategy for authenticating with Annict using the OAuth 2.0 API.

13 lines (12 loc) 477 B
import OAuth2Strategy from 'passport-oauth2'; interface AnnictStrategyOptions { clientID: string; clientSecret: string; callbackURL: string; scope: 'read' | 'read write'; } declare class AnnictStrategy extends OAuth2Strategy { constructor(options: AnnictStrategyOptions, verify: OAuth2Strategy.VerifyFunction); userProfile(accessToken: string, done: (err: Error | null, profile?: any) => void): void; } export { AnnictStrategy, AnnictStrategyOptions };