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.7 to 3.0.8

42

oauth2-server/index.d.ts
// Type definitions for Node OAuth2 Server 3.0
// Project: https://github.com/oauthjs/node-oauth2-server
// Definitions by: Robbie Van Gorkom <https://github.com/vangorra>,
// Charles Irick <https://github.com/cirick>
// Charles Irick <https://github.com/cirick>,
// Daniel Fischer <https://github.com/d-fischer>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -266,3 +267,3 @@ // TypeScript Version: 2.2

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>;
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
}

@@ -287,3 +288,3 @@

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>;
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
}

@@ -322,3 +323,3 @@

*/
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string[] | Falsey>): Promise<string[] | Falsey>;
validateScope?(user: User, client: Client, scope: string, callback?: Callback<string | Falsey>): Promise<string | Falsey>;
}

@@ -386,4 +387,37 @@

}
class OAuthError extends Error {
constructor(messageOrError: string | Error, properties?: object);
/**
* The HTTP error code.
*/
code: number;
/**
* The OAuth error code.
*/
name: string;
/**
* A human-readable error message.
*/
message: string;
}
class AccessDeniedError extends OAuthError {}
class InsufficientScopeError extends OAuthError {}
class InvalidArgumentError extends OAuthError {}
class InvalidClientError extends OAuthError {}
class InvalidGrantError extends OAuthError {}
class InvalidRequestError extends OAuthError {}
class InvalidScopeError extends OAuthError {}
class InvalidTokenError extends OAuthError {}
class ServerError extends OAuthError {}
class UnauthorizedClientError extends OAuthError {}
class UnauthorizedRequestError extends OAuthError {}
class UnsupportedGrantTypeError extends OAuthError {}
class UnsupportedResponseTypeError extends OAuthError {}
}
export = OAuth2Server;

9

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

@@ -16,2 +16,7 @@ "license": "MIT",

"githubUsername": "cirick"
},
{
"name": "Daniel Fischer",
"url": "https://github.com/d-fischer",
"githubUsername": "d-fischer"
}

@@ -28,4 +33,4 @@ ],

},
"typesPublisherContentHash": "e45b091e2d2f07153448d87d18b96d9eba53cea47b08b8ed71b62ada3bcfd49a",
"typesPublisherContentHash": "c2980d3e822d087ed409aa1700ad4bd407e159381b9cca6c4d900bc3f006bd61",
"typeScriptVersion": "2.2"
}

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

Additional Details
* Last updated: Fri, 01 Jun 2018 16:26:34 GMT
* Last updated: Sat, 21 Jul 2018 02:05:50 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>.
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>.
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