1.0.3 • Published 6 months ago
@types/passport-kakao v1.0.3
Installation
npm install --save @types/passport-kakao
Summary
This package contains type definitions for passport-kakao (https://github.com/rotoshine/passport-kakao).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-kakao.
index.d.ts
// Type definitions for passport-kakao 0.2
// Project: https://github.com/rotoshine/passport-kakao
// Definitions by: Park9eon <https://github.com/Park9eon>
// ZeroCho <https://github.com/zerocho>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import passport = require("passport");
import express = require("express");
export interface Profile extends passport.Profile {
id: string;
provider: string;
_raw: string;
_json: any;
}
export interface StrategyOption {
clientID: string;
clientSecret: string;
callbackURL: string;
scopeSeparator?: string | undefined;
customHeaders?: string | undefined;
}
export interface StrategyOptionWithRequest extends StrategyOption {
passReqToCallback: boolean;
}
export type VerifyFunction =
(accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void;
export type VerifyFunctionWithRequest =
(req: express.Request, accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void;
export class Strategy extends passport.Strategy {
constructor(options: StrategyOption, verify: VerifyFunction);
constructor(options: StrategyOptionWithRequest, verify: VerifyFunctionWithRequest);
authenticate(req: express.Request, options?: any): void;
userProfile: (accessToken: string, done: (error: any, user?: any) => void) => void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:24 GMT
- Dependencies: @types/passport, @types/express
- Global values: none