Socket
Socket
Sign inDemoInstall

@types/passport-naver

Package Overview
Dependencies
13
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

10

passport-naver/index.d.ts

@@ -30,8 +30,8 @@ // Type definitions for passport-naver 0.2

svcType?: number;
authType?: string;
svcType?: number | undefined;
authType?: string | undefined;
authorizationURL?: string;
tokenURL?: string;
profileURL?: string;
authorizationURL?: string | undefined;
tokenURL?: string | undefined;
profileURL?: string | undefined;
}

@@ -38,0 +38,0 @@

{
"name": "@types/passport-naver",
"version": "0.2.0",
"version": "0.2.1",
"description": "TypeScript definitions for passport-naver",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-naver",
"license": "MIT",

@@ -19,13 +20,15 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/passport-naver"
},
"scripts": {},
"dependencies": {
"@types/passport": "*",
"@types/express": "*"
"@types/express": "*",
"@types/passport": "*"
},
"typesPublisherContentHash": "e8294fa62b5fe12e72cefad949767e4bfe3e22893482865c005e85983d231476",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "ccfce8e45f9679b7f3e39b0bb3b814391b12fe5126c999b4d80ed5faa0a63ed0",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,66 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-naver
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-naver.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-naver/index.d.ts)
````ts
// Type definitions for passport-naver 0.2
// Project: https://github.com/naver/passport-naver
// Definitions by: Park9eon <https://github.com/Park9eon>
// ZeroCho <https://github.com/zerocho>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Mon, 10 Sep 2018 21:54:53 GMT
* Dependencies: passport, express
import passport = require("passport");
import express = require("express");
export interface Profile extends passport.Profile {
id: string;
provider: string;
_json: {
email: string,
nickname: string,
profile_image: string,
age: number,
birthday: any
id: string
};
}
export interface StrategyOption {
clientID: string;
clientSecret: string;
callbackURL: string;
svcType?: number | undefined;
authType?: string | undefined;
authorizationURL?: string | undefined;
tokenURL?: string | undefined;
profileURL?: 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;
authorizationParams: (options: any) => any;
userProfile: (accessToken: string, done: (error: any, user?: any) => void) => void;
}
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 20:19:25 GMT
* Dependencies: [@types/passport](https://npmjs.com/package/@types/passport), [@types/express](https://npmjs.com/package/@types/express)
* Global values: none
# Credits
These definitions were written by Park9eon <https://github.com/Park9eon>, ZeroCho <https://github.com/zerocho>.
These definitions were written by [Park9eon](https://github.com/Park9eon), and [ZeroCho](https://github.com/zerocho).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc