Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/oauth2-server

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/oauth2-server - npm Package Compare versions

Comparing version 3.0.9 to 3.0.10

58

oauth2-server/index.d.ts

@@ -5,3 +5,4 @@ // Type definitions for Node OAuth2 Server 3.0

// Charles Irick <https://github.com/cirick>,
// Daniel Fischer <https://github.com/d-fischer>
// Daniel Fischer <https://github.com/d-fischer>,
// Vitor Santos <https://github.com/rvitorsantos>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -116,2 +117,52 @@ // TypeScript Version: 2.2

abstract class AbstractGrantType {
/**
* Instantiates AbstractGrantType using the supplied options.
*
*/
constructor(options: TokenOptions)
/**
* Generate access token. Calls Model#generateAccessToken() if implemented.
*
*/
generateAccessToken(client: Client, user: User, scope: string | string[]): Promise<string>;
/**
* Generate refresh token. Calls Model#generateRefreshToken() if implemented.
*
*/
generateRefreshToken(client: Client, user: User, scope: string | string[]): Promise<string>;
/**
* Get access token expiration date.
*
*/
getAccessTokenExpiresAt(): Date;
/**
* Get refresh token expiration date.
*
*/
getRefreshTokenExpiresAt(): Date;
/**
* Get scope from the request body.
*
*/
getScope(request: Request): string;
/**
* Validate requested scope. Calls Model#validateScope() if implemented.
*
*/
validateScope(user: User, client: Client, scope: string | string[]): Promise<string | string[] | Falsey>;
/**
* Retrieve info from the request and client and return token
*
*/
abstract handle(request: Request, client: Client): Promise<Token | Falsey>;
}
interface ServerOptions extends AuthenticateOptions, AuthorizeOptions, TokenOptions {

@@ -188,2 +239,7 @@ /**

alwaysIssueNewRefreshToken?: boolean;
/**
* Additional supported grant types.
*/
extendedGrantTypes?: { [key: string]: typeof AbstractGrantType };
}

@@ -190,0 +246,0 @@

10

oauth2-server/package.json
{
"name": "@types/oauth2-server",
"version": "3.0.9",
"version": "3.0.10",
"description": "TypeScript definitions for Node OAuth2 Server",

@@ -21,5 +21,11 @@ "license": "MIT",

"githubUsername": "d-fischer"
},
{
"name": "Vitor Santos",
"url": "https://github.com/rvitorsantos",
"githubUsername": "rvitorsantos"
}
],
"main": "",
"types": "index",
"repository": {

@@ -33,4 +39,4 @@ "type": "git",

},
"typesPublisherContentHash": "24242bfc85affdff14332e3d0854b951be3e4c11b09fce5ab0045d5eb0537f3b",
"typesPublisherContentHash": "847197aecda79d577eac1c2dd576b702342c03abfa46711630d286da570adc37",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 27 Sep 2018 23:26:03 GMT
* Last updated: Thu, 29 Nov 2018 23:46:24 GMT
* Dependencies: express

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Robbie Van Gorkom <https://github.com/vangorra>, Charles Irick <https://github.com/cirick>, Daniel Fischer <https://github.com/d-fischer>.
These definitions were written by Robbie Van Gorkom <https://github.com/vangorra>, Charles Irick <https://github.com/cirick>, Daniel Fischer <https://github.com/d-fischer>, Vitor Santos <https://github.com/rvitorsantos>.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc